Martin Bähr mbaehr@email.archlab.tuwien.ac.at wrote:
On Mon, Nov 06, 2006 at 03:22:11PM +0100, Henrik Grubbström wrote:
(string)filter((array)Unicode.normalize("Å i åa ä e ö.", "DK"), `<, 256);
(1) Result: "A i aa a e o."
i get:
(string)filter((array)Unicode.normalize("Å i åa ä e ö.", "DK"), `<, 256);
(3) Result: "A i A\245a A\244 e A\266."
(string)filter((array)Unicode.normalize("Å i åa ä e ö.", "DK"), `<, 127);
(4) Result: "A i Aa A e A."
(tested both 7.7.34 and 7.6.93) is it pike or my terminal?
Seems to work for me:
----8<----8<----8<----8<---- $ pike Pike v7.6 release 112 running Hilfe v3.5 (Incremental Pike Frontend)
(string)filter((array)Unicode.normalize("Å i åa ä e ö.", "DK"), `<, 256);
(1) Result: "A i aa a e o." ---->8---->8---->8---->8----
----8<----8<----8<----8<---- $ ./pike Pike v7.7 release 32 running Hilfe v3.5 (Incremental Pike Frontend)
(string)filter((array)Unicode.normalize("Å i åa ä e ö.", "DK"), `<, 256);
(1) Result: "A i aa a e o." ---->8---->8---->8---->8----