[MERGE] setlocale

Jelmer Vernooij jelmer at samba.org
Tue Jun 17 12:24:34 BST 2008


Am Dienstag, den 17.06.2008, 14:26 +1000 schrieb Martin Pool:
> On Tue, Jun 17, 2008 at 5:39 AM, Martin von Gagern
> <Martin.vGagern at gmx.net> wrote:
> > Hi!
> >
> > This is a patch for bzr to call setlocale in order to set the current
> > program locale according to the environment. This is required by some third
> > party libraries in order to correctly determine things like the file system
> > character encoding. It has the side effect of using locale specific names
> > for days of the week in some cases.
> 
> That sounds reasonable; I guess i'd like to hear from Jelmer whether
> he thinks this will work well with bzr-svn as that's where it
> originally came up.
Yeah, this setlocale() call is appropriate for bzr-svn. I originally
suggested this as a workaround for bzr-svn, but didn't submit it
upstream because I was worried it would break any i18n efforts (don't
gettext, ctime(), etc use this setting ?)

I haven't looked at the other bits in the patch.

Cheers,

Jelmer
-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
Jabber: jelmer at jabber.fsfe.org



More information about the bazaar mailing list