Re: What Char encoding type is used in EXT4?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fre, 2009-12-18 at 11:45 +0530, Indraneel Mukherjee wrote:
> What's the char encoding type used to store file names on EXT4
> filesystem - UTF8, UTF16 or UTF32?
All or none - depending on how you interpret it: The kernel uses the
byte sequence you pass as the filename. If it's in UTF-8, UTF-16,
UTF-32, Latin1, ISO-8859-15, (clean 7bit) ASCII, some self-made encoding
or EBCDIC is in the kernel irrelevant (as long as the '\0' and '/' char
isn't used except for the usual - terminating the name and separating
path components, respectively).
And the should be the case for all filesystems.

And yes, that gives fun if you `tar` a directory with non-ASCII chars
(like German umlauts) on an old ISO-8859-1 system and un-`tar` it on a
current UTF-8 one.

	Bernd
-- 
mobil: +43 664 4416156          http://bernd.petrovitsch.priv.at/
    Linux Software Entwicklung, Beratung und Dienstleistungen


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux