Skip to contentSkip to conversation

A Great Idea (tm) about reimplementing NLS.

DISCUSSION Bodo Eggert 2 participants 2 messages Jun 17, 2005 – Jun 18, 2005 8 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 2 lines · Lennart Sorensen

What do you do if the underlying filesystem can not store some unicode characters that are allowed on others?

On vfat:
open("/e/a:b", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EINVAL

Quoted 3 lines

VFAT uses unicode? I thought it used the same codepage silyness as FAT did, since after all ti was just supposed to be a long filename extension to FAT. Do they use unicode in the long filenames only?

It uses two codepages, one for short names and one for long names. The long name charset defaults to iso-8859-1, and the short one to cp437

$ dd if=/dev/zero of=img bs=512 count=90
$ mkfs.msdos img
$ mount -oloop img /x
$ touch /x/testäöüßtest
$ umount /x
$ hex<img
...
0600  41 74 00 65 00 73 00 74  00 e4 00 0f 00 db f6 00  At.e.s.t ........
0610  fc 00 df 00 74 00 65 00  73 00 00 00 74 00 00 00  ....t.e. s...t...
0620  54 45 53 54 8e 99 7e 31  20 20 20 20 00 00 d0 58  TEST..~1     ...X
0630  d1 32 d1 32 00 00 d0 58  d1 32 00 00 00 00 00 00  .2.2...X .2......
Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
#9 lore raw

Bodo Eggert napisał(a):

Quoted 7 lines
Quoted 3 lines

VFAT uses unicode? I thought it used the same codepage silyness as FAT did, since after all ti was just supposed to be a long filename extension to FAT. Do they use unicode in the long filenames only?

It uses two codepages, one for short names and one for long names. The long name charset defaults to iso-8859-1,

Please look below where you have got "t.e.s.t.". That is obviously UTF-16 (below FFFF) not iso-8859-1.

Quoted 1 line

and the short one to cp437

Yes.

Quoted 4 lines
0600  41 74 00 65 00 73 00 74  00 e4 00 0f 00 db f6 00  At.e.s.t ........
0610  fc 00 df 00 74 00 65 00  73 00 00 00 74 00 00 00  ....t.e. s...t...
0620  54 45 53 54 8e 99 7e 31  20 20 20 20 00 00 d0 58  TEST..~1     ...X
0630  d1 32 d1 32 00 00 d0 58  d1 32 00 00 00 00 00 00  .2.2...X .2......

Has anybode seen characters above 0xFFFF on the vfat?

Signature · 1 line
Było mi bardzo miło.                    Trzecia pospolita klęska, [...]
Quoted 1 line

Łukasz< Już nie katolicka lecz złodziejska. (c)PP