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

UTF-8 support for Unix with APR?

From: B. Blodau <b_blodau_at_hamburg.de>
Date: Tue, 12 Feb 2008 10:52:19 +0100

I wrote a similar request for this topic earlier, but now it becomes
a more general issue.

My questions are:
- Can subversion support utf8 filenames on Unix systems when using
the apr libraries?
- Has anybody used the C-Libraries on a unix system (including MacOS
X) and successfully used international pathnames?

I'm writing a C++ appliation which uses the svn libraries and
therefore inherits the apr libraries too.
When working with international filenames I'm getting errors that
characters could not be converted from utf8 to the local encoding.

Since my app is a Unicode safe application I don't want the filenames
be converted, because I want to keep the whole Unicode character set.
Even a successful conversion to the encoding of the current user
locale, would result in a limited character set.

When debugging this a bit futher I came to the follwoing code snippet in
".../apr/file_io/unix/filepath.c":

APR_DECLARE(apr_status_t) apr_filepath_encoding(int *style,
apr_pool_t *p)
{
     *style = APR_FILEPATH_ENCODING_LOCALE;
     return APR_SUCCESS;
}

This looks as if - at least for Unix - no utf8 support is intended.
Otherwise this function should return APR_FILEPATH_ENCODING_UTF8.

Can anybody confirm my concern? I just don't want to search for a
solution where I don't have any chance.

Thanks a lor for your attention.
Bert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-12 10:52:41 CET

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

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