Ask / Submit
10

Kernel feature request: CONFIG_NLS_UTF8 [released]

asked 2014-01-04 20:10:45 +0300

javispedro gravatar image

Please enable the above kernel option. It is OK if it is a module, albeit I think it should be builtin because of its small size.

Reasoning:

  • The default locale in Jolla uses UTF-8, as evidenced by running locale (returns ES_es.utf8 on mine)

  • Without this module, you can't use iocharset=utf-8 when mounting most non-POSIX filesystems (fat, ntfs, cifs), resulting in Mojibake.

  • The module is less than a KiB and should not have any side effects.


Additionally, I have to ponder if the fact that the kernel's default iocharset is "iso8859-1" is a bug or not. Since at least in Spanish locale seems to be utf8, it would mean that extended characters are being translated in an incorrect way when e.g. writing to a FAT SD card ....

AIUI, with the current configuration, programs writing to SD card use UTF-8 filenames (because that's what locale says), then FAT driver discards that and incorrectly interprets filenames as "iso8859-1" (because that's what mount/default iocharset says), then converted to UTF-16 to store into FAT. (Or should I say corrupted?).

(However, changing the default iocharset WILL have side effects).

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by javispedro
close date 2014-09-26 01:17:05.866162

1 Answer

Sort by » oldest newest most voted
5

answered 2014-01-04 20:30:59 +0300

I've passed this on to the adaptation area, reasoning is sound.

edit flag offensive delete publish link more

Comments

This has now been merged into development branch. It now needs to pass a number of quality gates and will be in an upcoming update (but I cannot say which, because sometimes it gets postponed) if it does not cause any regressions.

Stskeeps ( 2014-01-07 09:51:47 +0300 )edit

Question tools

Follow
3 followers

Stats

Asked: 2014-01-04 20:10:45 +0300

Seen: 437 times

Last updated: Jan 04 '14