[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 4739 - in trunk/subversion: svnadmin svnlook clients clients/cmdline tests/libsvn_subr svnserve svnversion

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2003-02-07 02:20:29 CET

On Tuesday, February 4, 2003, at 08:54 PM, brane@tigris.org wrote:

> + /* C programs default to the "C" locale. But because svn is supposed
> + to be i18n-aware, it should inherit the default locale of its
> + environment. */
> + if (!setlocale(LC_ALL, ""))
> + {
> + if (error_stream)
> + fprintf(error_stream,
> + "%s: error: cannot set the locale\n",
> + progname);
> + return EXIT_FAILURE;
> + }

ok, this makes no sense to me, but this is failing for me on os x.

actually, it appears to be listed in the BUGS section of the man page:

      The current implementation supports only the "C" and "POSIX"
locales for
      all but the LC_COLLATE, LC_CTYPE, and LC_TIME categories.

if you try to set LC_ALL to "" (meaning 'the default locale'), it
always returns NULL. i'm not sure what exactly to do about this... do
we just return to not checking the return value of setlocale?

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 7 02:21:15 2003

This is an archived mail posted to the Subversion Dev mailing list.