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

Re: issue report - problem with command line argument parsing using tr_TR locale

From: Tobias Ringström <tobias_at_ringstrom.mine.nu>
Date: 2004-02-17 15:00:58 CET

Ozgur Murat Homurlu wrote:

>Some insight (possibly related with the issue):
>----------------------------------------------------------------
>There's a well known cause of problems related to tr_TR locale: lower
>case of the character 'I' is 'ý' with tr_TR locale (not the
>English-usual 'i'). So if you use C library's "tolower" type function
>with tr_TR locale you shouldn't expect i.e. 'COMMITTED' converted to
>'committed'. Correct programming style is setting the correct locale (
>for the word ) before using case conversions.
>
>
I agree that strcmp of tolower:ed strings would be a problem, but
Subversion uses libc's strcasecmp function for these comparisons, e.g:

    strcasecmp (word, "committed")

It sounds like a libc bug to me. I wonder if it would cause a similar
problem for some other locale if that was changed to

    strcasecmp (word, "COMMITTED")

Anybody?

/Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 17 15:01:08 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.