From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.pouillard@gmail.com (Nicolas Pouillard) Date: Wed, 16 Jan 2008 04:28:54 +0100 Subject: [sup-talk] the proper way of determining the encoding In-Reply-To: <1200453783-sup-4968@south> References: <1199569265-sup-4567@clarabella.clarabella> <1199685831-sup-2011@south> <1199695733-sup-2741@clarabella.clarabella> <1199901555-sup-2661@south> <1199925510-sup-7503@clarabella.clarabella> <1200190710-sup-6881@south> <1200414495-sup-4477@spooky.local> <1200447310-sup-8536@south> <1200449354-sup-9441@ausone.local> <1200452148-sup-9276@south> <1200453166-sup-9993@ausone.local> <1200453783-sup-4968@south> Message-ID: <1200453980-sup-9189@ausone.local> Excerpts from William Morgan's message of Wed Jan 16 04:23:35 +0100 2008: > Sorry, meant to reply to list. > > Reformatted excerpts from nicolas.pouillard's message of 2008-01-15: > > Still not working, gettext is guessing ASCII-US but my LC_CTYPE > > contains en_US.UTF-8. > > Well crap. Do you have a $LC_CTYPE environment variable defined, that > it's not picking up on? Yes $LC_CTYPE is set to en_US.UTF-8. I've looked at the gettext code and found something: In locale_posix.rb: ... [ENV["LC_ALL"], ENV["LC_MESSAGES"], ENV["LANG"], ... In locale_win32.rb: ... ["LC_ALL", "LC_CTYPE", "LC_MESSAGES", "LANG"].each do |env| ... Adding LC_CTYPE to the first list solve my problem... -- Nicolas Pouillard aka Ertai