On Wed, May 13, 2009 at 10:35:25AM +0200, Toni Mueller wrote:

> Hi,
> 
> from a discussion around early November last year, I gather that
> OpenBSD has not much UTF-8 support right now. I am a bit unsure about
> whether having file names with UTF-8 characters are supported, though.
> I don't need to type the characters, nor see or print them, but only
> have a program like
> 
> fd = open(filename_with_utf8_characters);
> 
> succeed on a standard OpenBSD disk (FFS, if I'm not mistaken), using
> open(2) and fopen(3).

OpenBSD does not restrict or interpret filenames in any way, apart
from the obvious: / and NUL are not allowed in filenames.
So we accept funny chars in filenames, but do nothing special with them.

> 
> I'm currently debugging a third-party application that happens to want
> to use UTF-8 filenames, but doesn't seem to find them, and, FWIW, the
> file names I get with "ls" are ISO-Latin-1 encoded, anyway.

I suppose hwta you are seeing depends on your terminal.

The kernel and base utilities encode nothing. Some utilities might
protect funny chars being printed on a terminal (e.g. see ls -q).

> It would be great if someone could make a definite statement about
> this issue.

The kernel and libc do not do any encoding or decoding. What third
part libs and applications do, who nows.

        -Otto

Reply via email to