Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Apr 2010 21:22:46 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Unicode support in Free bsd.
Message-ID:  <4BBE3B16.1020300@infracaninophile.co.uk>
In-Reply-To: <E559D19195578B4E9ECB3919FF99F97929A1864C83@orsmsx509.amr.corp.intel.com>
References:  <E559D19195578B4E9ECB3919FF99F97929A1864C83@orsmsx509.amr.corp.intel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/04/2010 20:11:15, Kotecha, Grishma wrote:
> Can we name files in freebsd with unicode characters?
> Also are unicode characters supported in file i/o system calls like open, dllopen, fopen? i.e. can we open a file with unicode pathname?
> for e.g in windows CreatefileW is used for opening files with unicode pathnames (wide characters).
> 
> If so how to activate it. Is there any kind of environment variable that we need to set for it?

In Unix you can create file names containing any arbitrary sequence of
characters except for NULL (marks the end of a string in C) or '/' (the
directory separator)  All of the variants on open(2) and similar
functions will accept any sequence of bytes conforming to that as a
filename.

The tricky bit is getting the user-interface to interpret those names as
Unicode (or whatever) and show you the appropriate sequence of glyphs in
whatever character set you prefer.  In general you need to set various
locale related environment variables plus you may need to run
specialized terminal emulator software to enable means for entering
non-roman characters via your keyboard.

See: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/l10n.html

	Cheers,

	Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku+OxUACgkQ8Mjk52CukIwN0wCeO9QlEcsHkjpyaTPEeXRj+luT
F18An0n1tqLRE6nD2Mrw/XKOGoWfYoxh
=1s6j
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BBE3B16.1020300>