Re: [RFC v2] Unicode/UTF-8 support for XFS

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

 



On 22-09-14 16:55, Andi Kleen wrote:
Ben Myers <bpm@xxxxxxx> writes:

Strings are normalized using a trie that stores the relevant
information.  The trie itself is about 250kB in size, and lives in a
separate module.

So 250kB bloat -- and what does this fix exactly?

Someone putting random ligatures into their file names and expecting
the file to be the same as before. Can't they just not do that?

I like the 'office' example because it is applicable to English and easy to explain. Once you move away from English examples are much easier to come by. Take a Dutch name like 'Renée Soutendijk'.

These two forms both spell Renée in UTF-8:
  0x52 0x65 0x6E 0xC3 0xA9 0x65
  0x52 0x65 0x6E 0x65 0xCC 0x81 0x65
The difference is
 LATIN SMALL LETTER E WITH ACUTE (U+00E9)
 LATIN SMALL LETTER E (U+0065) COMBINING ACUTE ACCENT (U+0301)
and corresponds to the difference between NFC and NFD.

These two forms both spell Soutendijk in UTF-8:
  0x53 0x6F 0x75 0x74 0x65 0x6E 0x64 0x69 0x6A 0x6B
  0x53 0x6F 0x75 0x74 0x65 0x6E 0x64 0xC4 0xB3 0x6B
The difference is
  LATIN SMALL LETTER I (U+0069) LATIN SMALL LETTER J (U+006A)
  LATIN SMALL LIGATURE IJ (U+0133)
and the former is the compatibility decomposition of the latter, the 'K' in NFKC/NFKD.

Do accented letters count as random ligatures that people should just not use?

The bulk of the table deals with Korean.

Olaf

--
Olaf Weber                 SGI               Phone:  +31(0)30-6696796
                           Veldzigt 2b       Fax:    +31(0)30-6696799
Technical Lead             3454 PW de Meern  Vnet:   955-6796
Storage Software           The Netherlands   Email:  olaf@xxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux