Working with UTF-8 in the kernel
Working with UTF-8 in the kernel
Posted Mar 28, 2019 23:35 UTC (Thu) by gdt (subscriber, #6284)In reply to: Working with UTF-8 in the kernel by ikm
Parent article: Working with UTF-8 in the kernel
The essential requirement is efficient case-insensitive comparison of file names. At present the provided API is not efficient; there's also races between checking the filename is not in use and creating a new file with that filename. The kernel design choices are: (1) the kernel supports UTF-8, (2) the kernel gives an efficient race-free user-space API to allow a directory to be listed, and changes to that directory locked whilst the user space handles UTF-8. Choice (2) is scary enough that choice (1) looks better.
