On Wed, 2005-10-12 at 11:54 +0200, Georg Baum wrote: > Martin Vermeer wrote: > > > On Wed, 2005-10-12 at 09:07 +0200, Georg Baum wrote: > >> Also true. But I have to admit that I don't understand the current > >> machinery. For example, why not simply strip the suffix from the > >> environment variables once on program start, set the new environment > >> variables and leave the frontend code as it was before Paris? > > > > Sounds OK. Could you do that? > > I am not sure whether I understand this locale stuff well enough, so I think > that I am not the right person for this task. I was simply thinking out > load.
Neither am I... but I did it anyway, just to get the stuff working. But your idea is better. All you have to do, at start-up, is 1) Check that a locale is defined, and if not, define en_US; 2) remove any encoding suffixes like fi_FI.utf-8 --> fi_FI. Doing it in one place at start-up (and only using, say, LC_ALL or LANG, and making the others conform) would allow a lot of special code to be taken out. In theory. I wonder if this is 1.4 stuff. Perhaps not. So I say, do the minimal patch based on Michael's idea. - Martin
signature.asc
Description: This is a digitally signed message part