Texmacs not working with some filenames containing ":"

Hello!
I encountered some problems with TexMacs when trying to open or work into some folders.

When trying to open TexMacs into a folder named “1° Modulo: Robotica con laboratorio”

It throws the below problem before core dumping. Trying to open a file from that folder creates a similiar problem.

Is this normal? I think the problem lies in the “:” in the folder name but I’m not sure. What I’m absolutely sure of is that the problem does not lie in the “°” character.

Error output:

warning: guile hooks are not available
Detected locale "LC_CTYPE=C;LC_NUMERIC=it_IT.UTF-8;LC_TIME=it_IT.UTF-8;LC_COLLATE=C;LC_MONETARY=it_IT.UTF-8;LC_MESSAGES=C;LC_PAPER=it_IT.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
TeXmacs] failed-error, base  = /home/jacopo/University/3° Anno/1° Semestre/Automazione e robotica con laboratorio/1° Modulo: Robotica con laboratorio
TeXmacs] failed-error, u     = {.:{}:/home/jacopo/.TeXmacs/fonts/type1:/usr/share/TeXmacs/fonts/type1:/usr/share/TeXmacs/fonts/type1/adobe:/usr/share/TeXmacs/fonts/type1/bluesky:/usr/share/TeXmacs/fonts/type1/cbgreek:/usr/share/TeXmacs/fonts/type1/ec:/usr/share/TeXmacs/fonts/type1/hoekwater:/usr/share/TeXmacs/fonts/type1/la:/usr/share/TeXmacs/fonts/type1/math:/usr/share/TeXmacs/fonts/type1/public:/usr/share/TeXmacs/fonts/type1/tc:/usr/share/TeXmacs/fonts/type1/bluesky/cm:/usr/share/TeXmacs/fonts/type1/bluesky/cmextra:/usr/share/TeXmacs/fonts/type1/bluesky/euler:/usr/share/TeXmacs/fonts/type1/bluesky/symbols:/usr/share/TeXmacs/fonts/type1/hoekwater/rsfs:/usr/share/TeXmacs/fonts/type1/hoekwater/stmaryrd:/usr/share/TeXmacs/fonts/type1/hoekwater/wasy:/usr/share/TeXmacs/fonts/type1/public/txfonts}/FandolSong-Regular.pfb
TeXmacs] failed-error, filter= fr
Throwing invalid base url
-------------------------------------------------
Error message:
  invalid base url

System information:
  TeXmacs version  : 2.1.4
  Built by         : jacopo
  Building date    : 2025-10-19T15:28:03
  Operating system : linux-gnu
  Vendor           : pc
  Processor        : x86_64
  Crash date       : dom 19 ott 2025, 16:06:08, CEST

TeXmacs does not yet have a current view
Backtrace of C++ stack:
  texmacs.bin : () + 0x3ab9d6
  texmacs.bin : () + 0x3ae2d3
  texmacs.bin : () + 0x3ae51c
  texmacs.bin : () + 0x6041f1
  texmacs.bin : () + 0x5efcbb
  texmacs.bin : () + 0x5f043c
  texmacs.bin : () + 0x5f52b7
  texmacs.bin : () + 0xa712a9
  texmacs.bin : () + 0x2ced67
  /usr/lib/libguile-3.0.so.1 : () + 0xcd27c
  /usr/lib/libguile-3.0.so.1 : scm_call_n() + 0x1a4
  /usr/lib/libguile-3.0.so.1 : scm_primitive_load_path() + 0x14c
  [0x716079bc029c]

-------------------------------------------------
terminate called after throwing an instance of 'string'
Aborted                    (core dumped) texmacs

Hello! This is a known problem.

https://savannah.gnu.org/bugs/?61466

If colons are not allowed in TeXmacs filenames it would be good if an error would be displayed instead of crashing.

2 Likes

Yes! I spent way too much time triyng to understand what was wrong simply because the error message was’t really clear and I did not think it was something so trivial…

Which version of TeXmacs are you using? If I open a file in a directory with colons on the development version I get a warning message. Perhaps the fix of the previous bug has already improved TeXmacs’ behaviour.

I compiled it yesterday from the yay repo texmacs-guile3-git, so this should be the latest version: 80e337c0d-1

Thanks, that repo seems to contain commits from the main TeXmacs SVN up to about June. It is based on a fork that uses Guile 3, which is different from the standard version which uses a fork of Guile v1.8. This could affect the behaviour. It might be worthwhile checking if you get the same result with a recent AppImage build from https://www.texmacs.org/builds/

Ah thanks! I actually did not know that that repo was just a fork of the official one.

I was too busy to keep track of (lots of, which is good!) newer commits from upstream. So at some point I just decided to archive the fork. I switched to aur/texmacs-svn where things are automatic. But do feel free to restart that fork if you want.

1 Like