Issue831

Title Game uses English locale (not system default) if settings file unreadable
Priority 0.16 rc bugs Status resolved
Assigned To Keywords
Linked issues Watchers

Submitted on 2015-08-26 16h27 by tomreyn, last changed by fluzz.

Messages
Author: tomreyn Date: 2015-08-26   16h27
When the game starts up in a new version and detects the existing settings file
is unreadable, it switches to English locale, even though the default locale
option is "system default".

Only once the settings file is overwritten and Freedroid is restarted (and the
new settings file is interpreted), the system default will be applied.

(I guess this may or may not be considered a bug - up to you. It is unexpected
behavior to me.)
Author: fluzz Date: 2015-08-28   11h41
I was not able to reproduce.

Without a ~/.freedroid_rpg dir, or without a fdrpg.cfg file in it, or with a
wrong content in that file, in any case the game started with my system locale.

Looking at the source, the game is initialized using the system locale, and only
if a locale definition is found in the config file do we switch to an other
locale...

So, I do not understand why it was not working for you.

Can you reproduce ? What is your system locale (please copy/paste the output of
the 'locale' command) ?
Author: tomreyn Date: 2015-08-30   23h32
My 'locale' Output:

$ locale
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
$

Since my old settings file was since replaced by a new one I think I will not be
able to reproduce this anymore.
Author: fluzz Date: 2015-09-01   20h09
Hard to fix without being able to reproduce.
Commit 45cfc2c8 will hopefully help to avoid that bug.

I close the ticket for now.
Re-open it if the bug appears again, but please attach the offending fdrpg.cfg
before the game rewrite it.
History
Date User Action Args
2015-09-01 20:09:09fluzzsetstatus: open -> resolved
messages: + msg3227
2015-08-30 23:32:39tomreynsetmessages: + msg3226
2015-08-28 11:41:47fluzzsetmessages: + msg3223
2015-08-26 16:27:18tomreyncreate