Unicode support in Free bsd.

2010-04-08 Thread Kotecha, Grishma
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?

Regards,
Grishma
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unicode support in Free bsd.

2010-04-08 Thread Chuck Swiger
On Apr 8, 2010, at 12:11 PM, Kotecha, Grishma wrote:
 Can we name files in freebsd with unicode characters?

UFS/UFS2 supports 8-bit chars (except NULL), so UTF8 representation for Unicode 
filenames ought to work OK.

 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?

Yes.

 for e.g in windows CreatefileW is used for opening files with unicode 
 pathnames (wide characters).

You can't use USC-2 / UTF-16 widechars.

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unicode support in Free bsd.

2010-04-08 Thread Matthew Seaman
-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-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unicode support in Free bsd.

2010-04-08 Thread Alejandro Imass
On Thu, Apr 8, 2010 at 4:22 PM, Matthew Seaman
m.sea...@infracaninophile.co.uk wrote:
 -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).
[...]
 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.


I find this thread interesting because I had similar problems in FBSD
with UTF-8. The virtual terminals will not support multi-byte
characters nor several other things. Nevertheless, if you have Gnome
(and I guess KDE as well) you can configure _that_ environment quite
easily to support UTF-8.

Just add:

gdm_lang=en_US.UTF-8

or whatever other locale you want in your rc.conf and that's it. You
can also customize this on a per-user basis. I haven't got the
languages list to work yet in GDM, but all I needed was UTF-8 anyway.
If anyone knows how to get multi-locales to work with GDM it would be
awesome. I searched several threads but noone seemed to have an aswer.

Anyway, hope this helps.

Alejandro Imass




 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-
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unicode support in Free bsd.

2010-04-08 Thread Yury Michurin
UTF8 works grate here in irssi and tcsh over putty, same goes for filenames.
Had no problem with it what so ever, just needed to set in .cshrc:

setenv LC_CTYPE he_IL.UTF-8

never checked any X applications though.

On Thu, Apr 8, 2010 at 11:37 PM, Alejandro Imass a...@p2ee.org wrote:

 On Thu, Apr 8, 2010 at 4:22 PM, Matthew Seaman
 m.sea...@infracaninophile.co.uk wrote:
  -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).
 [...]
  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.
 

 I find this thread interesting because I had similar problems in FBSD
 with UTF-8. The virtual terminals will not support multi-byte
 characters nor several other things. Nevertheless, if you have Gnome
 (and I guess KDE as well) you can configure _that_ environment quite
 easily to support UTF-8.

 Just add:

 gdm_lang=en_US.UTF-8

 or whatever other locale you want in your rc.conf and that's it. You
 can also customize this on a per-user basis. I haven't got the
 languages list to work yet in GDM, but all I needed was UTF-8 anyway.
 If anyone knows how to get multi-locales to work with GDM it would be
 awesome. I searched several threads but noone seemed to have an aswer.

 Anyway, hope this helps.

 Alejandro Imass




  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-
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org