Re:Setting the TZ environment variable avoids thousands of s...
by lmm on Thursday January 12, 2023 @02:26AM
(#34350284)
It's a problem when e.g. searching for caf◌́e doesn't find café.
[ Parent
| on HN ]
Re:Setting the TZ environment variable avoids thousands of s...
by lelanthran on Thursday January 12, 2023 @04:02AM
(#34350912)
> It's a problem when e.g. searching for caf◌́e doesn't find café.
That doesn't even display on my browser[1]; tried it in Goland[2], doesn't display there either, so that's the rare case 0.0001% that I wouldn't really worry about, because if the code has undisplayable unicode sequences, there's bigger problems than searching.
[1] Chrome, on Mac
[2] Also on Mac
Re:Setting the TZ environment variable avoids thousands of s...
by rjh29 on Thursday January 12, 2023 @04:24AM
(#34351100)
OP is trying to explain that accents in Unicode can be written in two ways: either "COMBINING ACUTE ACCENT" + "LATIN SMALL LETTER E" (two codepoints) or "LATIN SMALL LETTER E WITH ACUTE" (one codepoint). They both render the same on all browsers. But they don't compare the same unless you use locale-aware code.
To demonstrate this OP explicitly used "DOTTED CIRCLE" (◌) then added the "COMBINING ACUTE ACCENT" to that. Normally there would be no dotted circle.
I wrote an article on this a while ago: https://richardjharris.github.io/unicode-in-five-minutes/
Re:Setting the TZ environment variable avoids thousands of s...
by d4rti on Thursday January 12, 2023 @04:23AM
(#34351095)
Neither on FF or Safari on Mac.
Re:Setting the TZ environment variable avoids thousands of s...
by viccuad on Thursday January 12, 2023 @04:54AM
(#34351346)
it displays fine here on Firefox on Linux: https://i.imgur.com/MoRqYL8.png
Re:Setting the TZ environment variable avoids thousands of s...
by lmm on Thursday January 12, 2023 @10:03PM
(#34363482)
If you're using a Mac you have an easy way to reproduce the distinction: save a file called café.txt and look at what filename it has in a directory listing. (It will look the same but have a different byte sequence).