From: Till K. <til...@gm...> - 2008-08-04 23:39:01
|
Roger Leigh wrote: > 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. > > Did you read through the trace? The majority of the locales were not > present--you can see all the open(2) calls failing, which is why they > don't get localised. If you ltrace instead of strace, you should > additionally see the setlocale(3) return value. > > If you apply my patch, then add 'setlocale(LC_ALL, "");' to the start > of main() in genppd.c just above stp_init() and then retry, what do > you get in the PPD? > > > Thanks, > Roger > All English. No attempt to access anything in the catalog dir. strace and PPD attached. Seems that I am falling into the "C" locale trap. Till |