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

Re: Umlaut problem on Mac (composed vs. decomposed UTF-8)

From: B. Smith-Mannschott <benpsm_at_gmail.com>
Date: 2007-07-15 18:33:30 CEST

On Jul 15, 2007, at 14:34, Erik Huelsmann wrote:

> On 7/15/07, B. Smith-Mannschott <benpsm@gmail.com> wrote:
>>
>>
>>
>> void
>> normalize_utf8_composed(const char **path_utf8)
>> {
>> /* ... and then a miracle occurs ... */
>> }
>>
>> Have I misunderstood the problem?
>
> No, except that the problem is the part where the miracle occurs...
> Someone needs to write it or to find a library which does it for us.
>

I downloaded a copy of the unicode database to see what would be
involved, but then I got to googling on the reasonable assumption
that *someone* has surely invented this wheel already...

How about ICU: http://www.icu-project.org/

example:
http://icu-project.org/userguide/normalization-ex.html

(though "compatability" normalization shown in the example would be
the Wrong Thing in Subversion's case since it is lossy.)

It's authored by IBM, but provided under an open source license.

http://source.icu-project.org/repos/icu/icu/trunk/license.html
[QUOTE]
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, provided that the above
copyright notice(s) and this permission notice appear in all copies
of the Software and that both the above copyright notice(s) and this
permission notice appear in supporting documentation.
[/QUOTE]

I've also noticed that it's being used by the Firebird ( http://
www.firebirdsql.org/ ), for whatever that's worth.

see: http://firebird.cvs.sourceforge.net/firebird/firebird2/extern/icu/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 15 18:33:12 2007

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.