From owner-freebsd-questions@FreeBSD.ORG Thu Apr 8 20:22:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7ADAC1065672 for ; Thu, 8 Apr 2010 20:22:52 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id E14FE8FC16 for ; Thu, 8 Apr 2010 20:22:51 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o38KMkXu011371 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 8 Apr 2010 21:22:46 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BBE3B16.1020300@infracaninophile.co.uk> Date: Thu, 08 Apr 2010 21:22:46 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: Unicode support in Free bsd. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2010 20:22:52 -0000 -----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-----