On 10/01/2011 03:11 PM, Jörg Sommer wrote: > as you can see below, the ja in the first line is offset by one. This is > caused by the ü which is 2 Bytes, but only one character.
Hello, this is a bug in CDK, the ncurses interface used by CPM. CDK does not support multibyte strings at all; the i18n features only work correctly with ISO codepages and single-byte strings. As described in https://github.com/comotion/cpm/issues/1 we can either: -wait until CDK gains multibyte char support, which is unlikely as per Thomas E. Dickey, the CDK maintainer's website stating: "The wide-character support is most important to most users. Implementing it is not as simple as plugging in the ncursesw library. You can do that, but all that it achieves at the moment is to make line-drawing work properly with UTF-8 encoding." or we can rewrite the CDK gui to forgo CDK and perhaps even ncurses. I am not into waiting for hell to freeze over and therefore I am currently exploring the second option. This has the added benefit of making the CPM codebase a lot smaller, and may result in security benefits as well as a more usable interface. Regards, Kacper
signature.asc
Description: OpenPGP digital signature