From: Roger L. <rl...@wh...> - 2008-08-04 23:35:10
|
Till Kamppeter <til...@gm...> writes: > Till Kamppeter wrote: >> Now I have done an strace for this situation. I ran the command line >> >> LC_ALL= LANG= LANGUAGE= >> STP_MODULE_PATH=../../src/main/.libs:../../src/main >> STP_DATA_PATH=../../src/xml strace -s 1024 -o st.out >> ./cups-genppd.5.2 -p ppd/Global -c `pwd`/catalog/share/locale pcl-2 >> >> abd got st.out and ppd/Global/stp-pcl-2.5.2.ppd.gz as attached. >> >> Till >> > > Doing the same with Roger's patch gives me all English PPDs. st.out > and PPD attached. There was no initial setlocale call, or at least nothing done during the call, because you don't see any open(2) calls for the locale data. Make sure that you *don't* unset LC_ALL and LANG as you are doing above, or else you'll again end up in a C locale and won't get any translations as before. Note the Makefile.am changes in the patch!! ltrace to see what happens in setlocale(). Thanks, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail. |