News for hackers. Stuff that matters.
Re:Zig 0.9.0 by bvrmn on Tuesday December 21, 2021 @03:45AM (#29635361)
Python 3.9.9 (main, Nov 20 2021, 21:30:06) [GCC 11.1.0] on linux
Re:Zig 0.9.0 by fastball on Tuesday December 21, 2021 @03:55AM (#29635423)
EDIT: I can't seem to replicate this on my Ubuntu system. Strange.

Ah, interesting, I suppose then there is a difference in the way Linux handles strings? Didn't realize that, very unfortunate if true. I am running MacOS.

Re:Zig 0.9.0 by bvrmn on Tuesday December 21, 2021 @04:32AM (#29635619)
Actually browser normalized string and it works for me also. Here is original byte sequence:

    >>> b'n\xcc\x83'.decode()
    'ñ'
    >>> b'n\xcc\x83'.decode()[0]
    'n'
    >>> b'n\xcc\x83'.decode()[1]
    '̃'
But I agree, it's rare case when you need to deal with non-normalized data.