[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: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2004-11-27 07:55:42 CET

On Fri, 26 Nov 2004, [UTF-8] Branko Ä^Libej wrote:

> Peter N. Lundblad wrote:
>
> >>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. :-)
>
:-) Is your stomach OK yet? OK, we need Unicode-aware functions, but in
svnserve, we need ASCII-specific tests. There is no reason to support
non-ASCII in protocol items (other than the string ofcourse). But *that*
is the special case, so it is probably better to replace that with
explicit char checks.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 27 07:45:29 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.