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

Re: svn commit: r11797 - trunk/subversion/svnserve

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-11-15 18:36:48 CET

Peter N. Lundblad wrote:

>On Fri, 12 Nov 2004, [UTF-8] Branko �^Libej wrote:
>
>
>
>>lundblad@tigris.org wrote:
>>
>>
>>
>>>Modified: trunk/subversion/svnserve/main.c
>>>Url: http://svn.collab.net/viewcvs/svn/trunk/subversion/svnserve/main.c?view=diff&rev=11797&p1=trunk/subversion/svnserve/main.c&r1=11796&p2=trunk/subversion/svnserve/main.c&r2=11797
>>>==============================================================================
>>>--- trunk/subversion/svnserve/main.c (original)
>>>+++ trunk/subversion/svnserve/main.c Tue Nov 9 13:09:10 2004
>>>@@ -404,12 +404,8 @@
>>> apr_socket_listen(sock, 7);
>>>
>>> /* svn_cmdline_init() sets up the locale, but when we serve clients, we
>>>- always want the "C" locale. */
>>>- if (!setlocale (LC_ALL, "C"))
>>>- {
>>>- fprintf(stderr, "Can't set locale back to the \"C\" locale\n");
>>>- exit(1);
>>>- }
>>>+ always want the "C" locale for messages. */
>>>+ setlocale (LC_MESSAGES, "C");
>>>
>>>
>>>
>>This breaks the build on Windows, where LC_MESSAGES isn't defined. We
>>need to find a better solution, fast.
>>
>>
>>
>Hmmm, what's available on that platform then? I thought LC_MESSAGES was
>part of ISO C, but I haven't got that standard. Do you have any
>suggestions?
>
>
LC_MESSAGES is POSIX. The C standard mentions LC_ALL, LC_COLLATE,
LC_CTYPE, LC_MONETARY, LC_NUMERIC and LC_CTYPE.

>That was a simple one-liner:-(
>
>
Yah. How about bindtextdomain("")?

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 15 18:36:45 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.