View previous topic :: View next topic |
Author |
Message |
weylik n00b
Joined: 21 May 2015 Posts: 6 Location: Somerset
|
Posted: Fri May 22, 2015 4:12 pm Post subject: Locale setting is trying to bring in non-installed fonts |
|
|
NOTE: Please excuse me if this is the wrong place, but this is to do with fonts so seemed the most appropriate place to mention it
Hello
Recently I installed and compiled a game (ZDoom) to be exact and all went well until it crashed at a certain point where text is displayed with the error 'Warning: Missing charsets in String to FontSet conversion' in the terminal. I did some research to discover what this was thinking it was to do with the game but as it turns out (according to This website scroll until you see the slowness section) it is a problem with my locale trying to bring in fonts which are not installed. I tried this with xclock as the website says and I get the same error, proving it is not a problem specific to the game.
However, I am not sure where to go from here. The only locale I have enabled on the system is standard en_US.UTF-8 UTF-8 (according to me locale.gen file). So if anyone could tell me how I could perhaps go about finding the solution to this problem, that would be great. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3683
|
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri May 22, 2015 7:21 pm Post subject: |
|
|
@weylik: you're asking the wrong question.
ZDoom for somewhat misguided reasons is using xmessage to put the crash output on screen.
The proper solution is to ignore the error and not have xmessage installed in the first place.
The errors are written to the log file anyway and if you're in need of proper debugging, gdb is the way to go here (of course, you need it built with debugging symbols in such case).
On a semi-related note: are you using one of the release tarballs or are you building from git ? |
|
Back to top |
|
|
weylik n00b
Joined: 21 May 2015 Posts: 6 Location: Somerset
|
Posted: Sat May 23, 2015 9:04 am Post subject: |
|
|
Locale gives me
Code: | LANG=en_GB.utf8
LC_CTYPE="en_GB.utf8"
LC_NUMERIC="en_GB.utf8"
LC_TIME="en_GB.utf8"
LC_COLLATE="en_GB.utf8"
LC_MONETARY="en_GB.utf8"
LC_MESSAGES="en_GB.utf8"
LC_PAPER="en_GB.utf8"
LC_NAME="en_GB.utf8"
LC_ADDRESS="en_GB.utf8"
LC_TELEPHONE="en_GB.utf8"
LC_MEASUREMENT="en_GB.utf8"
LC_IDENTIFICATION="en_GB.utf8"
LC_ALL=
|
Whilst locale -a gives me
Code: |
C
en_GB.utf8
en_US.utf8
POSIX
|
And I shall have a look at those guides, thanks
@VoidMage
Right, but since it shows up in other programs surely it is a problem with my system not the game? I have will give it a go with gdb and different builds and see what happens. I am using git yes, release tarballs are very old so I prefer to use git. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3683
|
Posted: Sat May 23, 2015 9:57 am Post subject: |
|
|
weylik wrote: | Whilst locale -a gives me
Code: |
C
en_GB.utf8
en_US.utf8
POSIX
|
|
Then printenv should show you what's set in your envirenment Quote: | $ printenv | grep 'LC\|LANG'
LC_COLLATE=C
LANG=en_US.UTF-8 |
Places to set is your ~/.bashrc per user or /etc/env.d/02locale per system wide setting. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sat May 23, 2015 10:09 am Post subject: |
|
|
weylik wrote: | Right, but since it shows up in other programs surely it is a problem with my system not the game? I have will give it a go with gdb and different builds and see what happens. I am using git yes, release tarballs are very old so I prefer to use git. |
Not really. Only apps printing those errors are those still using xfonts - IMHO all of them that can use only xfonts are useless.
The others at minimum can use xft (which still sucks, though a bit less) or make use of fontconfig (or an equivalent mechanism).
Those that are still bound to xfonts by this date, are simply broken by design.
I simply call 'Warning: Missing charsets in String to FontSet conversion' 'A Problem That Doesn't Deserve A Fix'. |
|
Back to top |
|
|
weylik n00b
Joined: 21 May 2015 Posts: 6 Location: Somerset
|
Posted: Sun May 24, 2015 10:14 am Post subject: |
|
|
VoidMage wrote: |
Those that are still bound to xfonts by this date, are simply broken by design.
|
Ah I see, so it is a problem with the program because it's just using outdated methods of font management. I guess I'll try and take it up on the forum for the game then, thanks for the help! |
|
Back to top |
|
|
|