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

Re: using isalpha/isalnum in locale-independent code

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-11-26 01:34:11 CET

Peter N. Lundblad wrote:

>On Thu, 25 Nov 2004, [UTF-8] Branko �^Libej wrote:
>
>
>
>>No, you're not being paranoid. Ideally, we'd need a set of
>>classification functions that are Unicode-aware. For example, the code
>>that parses a "-rN[:M]" option doesn't know that ASCII 0-9 aren't the
>>only digits in Unicode. Of course it's debatable whether or not
>>Subversion should accept such non-ASCII numbers.
>>
>>I think it would be best if we created our own set of svn_utf_is*
>>functions that would only work on the ASCII subset and always use those
>>when dealing with UTF-8 strings.
>>
>>
>>
>Maybe svn_ascii_is*, since svn_utf_is would imply that they work for the
>whole UTF-8 range.
>
The functions _do_ need to work with UTF-8 at some point. Besides, the
very idea of using "ascii" in the function name turns my stomach. :-)

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 26 01:35:19 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.