From: fiveight <fiv...@to...> - 2012-09-07 01:34:30
|
I am running a Chinese Windows. And I try set LANGUAGE=fr set LANG=fr It can not output French too. ======= 2012-09-07 06:28:23 您在来信中写道:======= >Erwin Waterlander schreef, Op 6-9-2012 23:31: >> Keith Marshall schreef, Op 6-9-2012 13:50: >>> On 6 September 2012 12:19, LRN wrote: >>> [...snip...] >>>>>> So I launch cmd.exe, and input: >>>>>> set LANG=zh_CN gcc.exe -std=c99 main.c -o main.o -c >>> [...snip...] >>> >>>> By the way, it's "export LANG=...", not "set LANG=...". >>> No, it isn't. >>> >>> The OP showed his commands, (for cmd.exe), as: >>> >>> set LANG=zh_CN >>> gcc.exe ... >>> >>> which is correct. You've eclipsed it, into a single command, (which >>> doesn't work in cmd.exe, AFAIK; you need MSYS shell for that). >>> >>> The single command form, (for MSYS shell), is: >>> >>> LANG=zh_CN gcc ... >>> >>> *without* export. You use export, (in MSYS shell), only when using the >>> two command form: >>> >>> export LANG=zh_CN >>> gcc ... >>> >>> As regards the NLS support: are the appropriate message catalogues for >>> zh_CN installed? (That asked, it doesn't seem to be working for me either, >>> trying with LANG=fr_FR or LC_ALL=fr_FR). >>> >> It looks like that zh_CN is installed. But with gcc 4.6.2 I also don't >> get Chinese messages. French however, works, but only when I set >> LANGUAGE to fr. LANG does not seem to work with gcc. Here the output in >> an MSYS shell: >> >> waterlan@localhost /mingw/share/locale >> $ export LANG=fr >> >> waterlan@localhost /mingw/share/locale >> $ gcc -std=c99 adfaf.c >> gcc.exe: error: adfaf.c:No such file or directory >> gcc.exe: fatal error: no input files >> compilation terminated. >> >> waterlan@localhost /mingw/share/locale >> $ unset LANG >> >> waterlan@localhost /mingw/share/locale >> $ export LANGUAGE=fr >> >> waterlan@localhost /mingw/share/locale >> $ gcc -std=c99 adfaf.c >> gcc.exe: erreur: adfaf.c: No such file or directory >> gcc.exe: erreur fatale: pas de fichier ?l'entr >> compilation termin. >> >> regards, >> > >On a Dutch Windows gcc automatically speaks Dutch, without setting LANG >or LANGUAGE. > >I can select any other Latin-1 language with LANGUAGE. But all >non-Latin-1 languages don't work. That means for instance also Russian >doesn't work. > >This could have to do with the regional setting in the control panel. I >don't dare to switch my Windows to scripts I can't read. Perhaps >somebody else can test on a non-Latin-1 Windows. > >Fiveight, are you running a Chinese Windows, or English? > >regards, > >-- >Erwin Waterlander >http://waterlan.home.xs4all.nl/ > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >MinGW-users mailing list >Min...@li... > >This list observes the Etiquette found at >http://www.mingw.org/Mailing_Lists. >We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > >_______________________________________________ >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users >Also: mailto:min...@li...?subject=unsubscribe = = = = = = = = = = = = = = = = = = = = 致 礼! fiveight fiv...@to... 2012-09-07 |