From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.pouillard@gmail.com (Nicolas Pouillard) Date: Fri, 18 Jan 2008 17:40:19 +0100 Subject: [sup-talk] the proper way of determining the encoding In-Reply-To: <1200473133-sup-6533@ausone.local> 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> <1200453980-sup-9189@ausone.local> <1200454570-sup-2537@south> <1200473133-sup-6533@ausone.local> Message-ID: <1200674268-sup-6999@ausone.inria.fr> Excerpts from Nicolas Pouillard's message of Wed Jan 16 09:46:08 +0100 2008: > Excerpts from William Morgan's message of Wed Jan 16 04:38:14 +0100 2008: > > Reformatted excerpts from nicolas.pouillard's message of 2008-01-15: > > > 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... > > > > Excellent, sounds like a bug in gettext. If you submit a bug report, > > would you mind cc'ing me? > > http://rubyforge.org/tracker/index.php?func=detail&aid=17133&group_id=855&atid=3377 > It's end by a "wont fix": """ Date: 2008-01-17 12:29 Sender: Masao Mutoh LC_CTYPE is not for messaging. So locale_win32.rb was wrong. And it removed in current CVS version. """ I don't know much about locale and encoding but I thought LC_CTYPE was a good way of setting it. -- Nicolas Pouillard aka Ertai