Re: character sets for file names on ufs?

2009-05-29 Thread perryh
Dan Nelson dnel...@allantgroup.com wrote:

 ... ufs filenames have no assumed character set.

I take it the / character is the same across all encodings then?
Last I knew the pathname separator was treated specially.
___
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: character sets for file names on ufs?

2009-05-29 Thread perryh
Pieter de Goeje pie...@degoeje.nl wrote:

 % touch ??? ? ??  ?? ??? 
 % ls
 ??? ? ??  ?? ???
 % rm ???\ ?\ ??\ \ ??\ ???\
 %

 (I don't have a clue what that means btw)

Here it looks like a string of question marks and a few spaces.

I have a suspicion that something in the path between your keyboard
and my xterm is not 8-bit clean :(
___
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: character sets for file names on ufs?

2009-05-29 Thread Pieter de Goeje
On Friday 29 May 2009 10:20:15 per...@pluto.rain.com wrote:
 Pieter de Goeje pie...@degoeje.nl wrote:
 
  % touch ??? ? ??  ?? ??? 
  % ls
  ??? ? ??  ?? ???
  % rm ???\ ?\ ??\ \ ??\ ???\
  %
 
  (I don't have a clue what that means btw)
 
 Here it looks like a string of question marks and a few spaces.
 
 I have a suspicion that something in the path between your keyboard
 and my xterm is not 8-bit clean :(
 

I think xterm cannot display the (braille) characters. I used konsole for this. 
The text was copied from UTF-8-Demo.txt [1].

-- 
Pieter de Goeje

1. http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt
___
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: character sets for file names on ufs?

2009-05-29 Thread Tom Worster
On 5/28/09 3:01 PM, Pieter de Goeje pie...@degoeje.nl wrote:

 If you set your locale to UTF-8, you can use unicode characters in filenames.


works like a charm. thanks for the tip!

tom 


___
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: character sets for file names on ufs?

2009-05-29 Thread Polytropon
On Fri, 29 May 2009 01:20:15 -0700, per...@pluto.rain.com wrote:
 Pieter de Goeje pie...@degoeje.nl wrote:
 
  % touch ??? ? ??  ?? ??? 
  % ls
  ??? ? ??  ?? ???
  % rm ???\ ?\ ??\ \ ??\ ???\
  %
 
  (I don't have a clue what that means btw)
 
 Here it looks like a string of question marks and a few spaces.
 
 I have a suspicion that something in the path between your keyboard
 and my xterm is not 8-bit clean :(

Now, because of quoting, I see the question marks, too. Before
the characters seemed to be Braille characters (dotmatrix
characters in a 2x3 matrix to be read by blind persons), but
I can't remember the letters anymore in order to translate. :-)

By the way, I'm using Sylpheed 2.4.7.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: character sets for file names on ufs?

2009-05-28 Thread Dan Nelson
In the last episode (May 28), Tom Worster said:
 what character set/encoding is used for file names in freebsd when i have
 a default ufs fs?

Whatever you want; ufs filenames have no assumed character set.  zfs
defaults to the same rules, but can enforce only valid utf8 filenames if the
utf8only property is set.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: character sets for file names on ufs?

2009-05-28 Thread Pieter de Goeje
On Thursday 28 May 2009 19:51:45 Tom Worster wrote:
 what character set/encoding is used for file names in freebsd when i have a
 default ufs fs?

 tom

None.

UFS is 8 bit clean, so you can basically use it with any 8bit character set. 
No encoding is enforced and no conversion is ever applied to file names on 
UFS.

If you set your locale to UTF-8, you can use unicode characters in filenames.

For instance:

% touch ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ 
% ls
⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁
% rm ⡍⠜⠇⠑⠹\ ⠺⠁⠎\ ⠁⠎\ ⠙⠑⠁⠙\ ⠁⠎\ ⠁\
%

(I don't have a clue what that means btw)

-- 
Pieter de Goeje

___
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: character sets for file names on ufs?

2009-05-28 Thread Wojciech Puchar

what character set/encoding is used for file names in freebsd when i have a
default ufs fs?


it just write whatever program will give it. UFS does not recode anything.
___
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