mkfontscale, mkfontdir, and the entire rest of X does not allow files
with spaces in the names. Wether this is intentional, or a documented
part of the standard, or if it is just a long standing bug or misfeature
however, I'm not quite sure.
My guess is it is a long time bug nobody has cared to fix throughout the
X sources, but I've never bothered to ask anyone who knows for sure, and
I haven't cared enough to bother looking at the relevant code to try and
determine it on my own.
Problem is described in more detail in XFree86 bugzilla at:
XFree86.org has closed the issue as WONTFIX, however, while fixing this is
definitely not of major high priority, it is worthwhile to have it tracked in
bugzilla until someone does actually fix it, rather than just pretending
the problem does not exist.
As such, I'm assigning this to myself for the time being, but with no intent
on investigating it right away, but I will at some point in time. In the mean
time, if someone else feels like fixing it, feel free.
Just don't close it WONTFIX to ignore the issue please. This is a personal
------- Additional Comment #2 From Juliusz Chroboczek 2003-05-30 07:02
As far as I can see, there are three places where there are problems with spaces
in the core fonts system:
1. the parser in lib/font/dirfile.c, where scanf(%s) is used;
2. both the fonts.scale parser and the fonts.dir printer in mkfontdir;
3. the printer in mkfontscale.
------- Additional Comment #4 From Mike A. Harris 2003-05-30 19:04 [reply]
I've logged this in our bugzilla also, to kick me in the pants:
When this comes up my priority list, I'll attach a patch here once it is tested
well in the wild.
------- Additional Comment #5 From Juliusz Chroboczek 2003-06-02 13:05 [reply]
The fonts.dir format is not standardised in any way, feel free to extend it to
deal with spaces in font names. Document your changes in the mkfontdir man
page. I suggest stealing the quoting code from the fonts.alias parser.
Reassigning to mharris, since it looks like he wanted this on his list
originally and it seems to have somehow gotten lost.
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
I will shortly have no access to email@example.com or its aliases firstname.lastname@example.org or email@example.com. Please direct future correspondence to firstname.lastname@example.org.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues/1.