lkml.org 
[lkml]   [2005]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: A Great Idea (tm) about reimplementing NLS.
On Thu, 16 Jun 2005, Lennart Sorensen wrote:

> On Thu, Jun 16, 2005 at 01:34:13AM +0200, Lukasz Stelmach wrote:
>> That's why UTF-8 is suggested. UTF-8 has been developed to "fool" the
>> software that need not to be aware of unicodeness of the text it manages
>> to handle it without any hickups *and* to store in the text information
>> about multibyte characters.What characters exactly you do mean? NULL?
>> There is no NULL byte in any UTF-8 string except the one which
>> terminates it.
>
> That is true. UTF-8 wouldn't cause any more problems than ascii already
> does, such as some filesystems not allowing : and * in filenames among
> other characters.
>
>> Yes, it uses unicode. And dos codepages in short ones. To prove this
>> take a vfat floppy and mount it. touch(1) a file on it that has some
>> non latin1 characters. Unmount the floppy then do dd if=/dev/fd0
>> of=/tmp/floppy bs=1024 count=512. While it's done take some hex
>> editor/viewer and seek the latin1-complaint part of the filename
>> in the floppy file (search for uppercase string). Righ above the short
>> filename you'll find multibyte long one.
>
[SNIPPED...]

>
> Len Sorensen

You know this problem was "solved" over 20 years ago when it was
discovered that file-names could never be long enough. The solution
was a container-file which contained as much stuff as necessary to
identity the contents of the file that it was associated with. Using
this technique, the "real" file didn't need any ASCII identifiers. The
real file didn't show up in some directory program, just the contents
of the container-file. This same technique could be used for any
arbitrary file-identification including characters that haven't been
invented yet.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.11.9 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-16 16:50    [W:0.320 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site