forwarded 625949 http://trac.navit-project.org/ticket/850 tag 625949 patch thanks
Timo Juhani Lindfors a écrit , Le 08/05/2011 00:00: > Gilles Filippini <p...@debian.org> writes: >> Which graphic and gui backends do you use. > > I'm attaching complete ~/.navit/navit.xml this time. > >> (process:6049): Gtk-WARNING **: Locale not supported by C library. >> Using the fallback 'C' locale. >> >> (<unknown>:6049): Gdk-WARNING **: locale not supported by C library > > Does "locale -a" list fi_FI.UTF-8? If not, can you generate it with > "sudo dpkg-reconfigure locales" and try again? Indeed. I can reproduce the problem now. > >>> but I could not figure out how to enable that dbg. It would also only >>> go to debug log which the normal user is not going to notice. >> >> This wiki entry may help: >> <http://wiki.navit-project.org/index.php/Configuring_Navit#Debugging> > > Sure, I was just trying to point out that the current warning is not > something that people actually notice. Sure. I've opened a ticket upstream [1] and set up a patch which, when LC_ALL is set, unset it and set LANG instead. Committed to my git repo and attached here. [1] <http://trac.navit-project.org/ticket/850> Thanks, _g.
Description: Set lang instead of LC_ALL to prevent decimal separator bugs In case LC_ALL is set, unset it and set LANG instead. Author: Gilles Filippini <p...@debian.org> Forwarded: http://trac.navit-project.org/ticket/850 Last-Update: 2011-05-08 Index: navit/navit/main.c =================================================================== --- navit.orig/navit/main.c 2011-05-08 00:17:11.000000000 +0200 +++ navit/navit/main.c 2011-05-08 00:23:49.000000000 +0200 @@ -407,8 +407,12 @@ main_setup_environment(2); #endif /* _WIN32 || _WIN32_WCE */ - if (getenv("LC_ALL")) + if (getenv("LC_ALL")) { dbg(0,"Warning: LC_ALL is set, this might lead to problems (e.g. strange positions from GPS)\n"); + dbg(0,"Warning: Unsetting LC_ALL and setting LANG instead as a workaround.\n"); + setenv("LANG", getenv("LC_ALL"), 1); + unsetenv("LC_ALL"); + } s = getenv("NAVIT_WID"); if (s) { setenv("SDL_WINDOWID", s, 0);
signature.asc
Description: OpenPGP digital signature