Re:Can we believe our eyes? Misleading people with Unicode.
by neilk on Thursday August 11, 2011 @11:01AM
(#2873150)
That's a clever idea, but I don't know how one would determine what "unexpected" is an increasingly international world.
[ Parent
| on HN ]
Re:Can we believe our eyes? Misleading people with Unicode.
by jerf on Thursday August 11, 2011 @12:11PM
(#2873464)
nodata told you. Highlight characters not expected in my locale. My locale right now is en_US.utf-8. In security-sensitive contexts like file names and domain names, it's not actually that hard to figure out which characters are a surprise for me. And if I have a file that is named entirely in non-ASCII-subset characters... which I do... then light them all up. It's OK. It won't be hard for users to figure out what's going on, even if only subconsciously.
Re:Can we believe our eyes? Misleading people with Unicode.
by adobriyan on Thursday August 11, 2011 @11:34AM
(#2873294)
Code point has script property and mixing it inside strings which aren't likely to contain multiscript code points (like filenames) is a sign of trouble.
Re:Can we believe our eyes? Misleading people with Unicode.
by xentronium on Thursday August 11, 2011 @12:52PM
(#2873690)
Filenames can contain multiscript code points.
E.g.: "Архив.gz" (Archive.gz)
Re:Can we believe our eyes? Misleading people with Unicode.
by pavel_lishin on Thursday August 11, 2011 @01:54PM
(#2873966)
But do default windows ones? I think (hope?) that the hosts file is hosts on every system, no matter which country or locale you selected - instead of, say, хозяин.
Perhaps limit system folders and files to ascii-only. Doesn't solve any of the picjpg.exe issues, but it's a start.
Re:Can we believe our eyes? Misleading people with Unicode.
by xentronium on Thursday August 11, 2011 @06:18PM
(#2875071)
To be honest, I don't think it solves the problem of system file being modified by a process of unknown origin.
Re:Can we believe our eyes? Misleading people with Unicode.
by cbr on Thursday August 11, 2011 @11:44AM
(#2873330)
Then I could spell "hosts" entirely with cyrillic characters. (I'm not sure if it's possible with the word "hosts", but there's probably some word.)
Re:Can we believe our eyes? Misleading people with Unicode.
by adobriyan on Thursday August 11, 2011 @11:59AM
(#2873411)
Maybe you could. Anyway you could do it right now as well.
I doubt there is an acceptable non-heuristic solution.
Re:Can we believe our eyes? Misleading people with Unicode.
by Daniel_Newby on Thursday August 11, 2011 @05:35PM
(#2874923)
how one would determine what "unexpected" is an increasingly international world
1. Highlight any two adjacent characters from different languages. Virtually no one needs an English word with one Cyrillic letter substituted in.
2. Highlight any word whose letters all look like they are for the current locale but is made entirely of code points from another language.