devfs file name NLS encoding?

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Sep 13 22:11:54 PDT 2005


In message <200509140243.j8E2hXPY049090 at ns.init-main.com>, takawata at jp.freebsd.
org writes:
>Hi, as you know, we can create arbitaly file name on devfs.
>But for now, all file names on a devfs are encoded in ASCII.
>
>If we want to put Japanese file names in devfs, how should  it 
>be encoded? UTF-8 or something convinient for the source encoding?

All filenames in DEVFS are either created from the device driver
'C' source (as a string literal via sprintf mostly) or from userland
as symlink.

So whatever works.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-fs mailing list