Live data from Hacker News

I couldn't debug the code because of my name

mikolaj-kaminski.com

151–160 of 300 posts

Re: I couldn't debug the code because of my name

#151
post #25
post #6

What’s wrong with just writing it as Mikolaj? It’s not like it’s a kanji or something.

That’s about as aggravating as asking Ryan to change name to Pyan — because the encoding doesn’t support “R” and “P” looks very similar.

Interestingly, this particular change would work in cyrillic :)

Re: I couldn't debug the code because of my name

#152
post #105
post #94

Earlier quoted context omitted.

I used a system where the maximum length on the "new password" field in the change password form was longer than the password field in the login form. The symptom was that I could login if I used my password manager browser plugin, but not if I pasted it from my password manager.

I maintained a system where we had unbounded password length... but only respected the first six characters of the password. (we did fix that).

Unix passwords worked that way for 8 characters for many years due to the crypt algorithm used.

Re: I couldn't debug the code because of my name

#153

Earlier quoted context omitted.

My legal last name is "Sirén". When I was younger, I almost always used "Siren", because it was easier to type. Then, ~15 years ago, I started noticing that American websites sometimes rejected it, because they considered it inappropriate. Sometimes "Sirén" would work, sometimes it worked but caused minor annoyances, and sometimes it would not work for technical reasons. Both versions work most of the time these days…

Why would Siren be an inappropriate name?

My best guess is the Sirens of greek myth, who are often (incorrectly) depicted as sexual temptresses. Bit of a stretch, though.

Re: I couldn't debug the code because of my name

#154
post #49

Earlier quoted context omitted.

My last name has an apostrophe in it which Apple apparently loves to embed directly into their JavaScript unescaped. For a long time neither I nor Apple could look up AppleCare status on my stuff as they were all linked to my Apple ID. The portal would thus require me to login, but then would just show a partially rendered page as my last name was causing an JS syntax error.

Hmm, it sure sounds like John alert(1); Doe (Bobby Tables' distant cousin) should sign up for an Apple account. An XSS attack which could target the AppleCare reps' machines could be catastrophically bad...

Like the AirTags bug [0] Apple had recently?

[0] https://www.theregister.com/2021/09/29/weaponised_apple_airt...

Re: I couldn't debug the code because of my name

#155
post #101

Very similar problem to one described started my exodus from Google services. I also have non-latin characters in my name however I knew it was always an issue so I never used it in paths etc. At some point, long time ago, I was tasked to do some maintance with Google Cloud service (can't remember the name of the service now) which was doable only through Python CLI utility and it failed with very similar Python erro…

A Polish relative of mine used to just gave an arbitrary substitute name (e.g. "Dave Smith") for restaurant reservations, because even if they could write his last name, they wouldn't be able to pronounce it.

My sibling has a name that has an accent, and just enters it with the plain letter most of the time. The name was once rare and "ethnic", but became popular a generation later so people know how to pronounce it regardless.

Our parents gave us two middle names, wanting to preserve our grandmothers' surnames, but also in the spirit of "Bobby Tables", having ambivalent feelings about the computerization of society tending towards inflexibility.

According to: https://en.wikipedia.org/wiki/Naming_customs_of_Hispanic_Ame...

...misunderstanding of naming customs in the US has actually led to significant consequences due to last names not matching on legal documents.

I remember reading a story about how there are people in China whose name incorporates a character that is obscure enough, the authorities are trying to eliminate it and get them to change their name. If I recall correctly, Chinese has a particular problem with characters that are part of names that have been around forever, but are no longer used for ordinary writing.

Re: I couldn't debug the code because of my name

#156
post #65

Isn't it bizarre that we have self-driving cars, the ISS, and phones with 50 megapixel cameras but still struggle with character encoding?

It's not bizarre at all. Character encodings are a sort of language in themselves, and end up with all the problems that regular old languages have – there's a lot of variety, people can't agree on one particular solution, and there's not a lot of money in taking care of the edge cases.

It would be bizarre if we were at the point where we had perfect translations for everything, but still struggled with character encodings specifically.

Re: I couldn't debug the code because of my name

#157
post #67
post #62

Earlier quoted context omitted.

Assuming that hypothetical guy is an average Japanese male(somewhat leaning right), he'd just turn IME off. Japanese input on desktop is consist of three following states: - IME On state. IME capture and interpret keypresses as engraved and generate corresponding Kana-Kanji texts. - IME Off state. IME passes through keypresses as engraved on keytops. - Direct Input state. IME becomes dormant. In IME Off state, the ke…

I don't think it's something that people should 'just know' that when Windows asks them their name during install time, they ought to use 7-bit clean ASCII for everything, no matter where they are in the world or how much they know about other languages. When Windows says "What is your name?", they ought to be able to use their name without things breaking. I'm sure a computer savvy speaker of a fully-non-Latin langu…

Usernames and passwords are always 7-bit ASCII at least in Japanosphere, to the point it would look odd that you get to log into a computer using their own legal names. To use a computer for any useful purpose as a Japanese, you will have to be able to understand what "English" or "alphanumeric" or "half-width" means, which are non-tech terms for `char str[]`, and be able to constantly and quickly switch IME between ASCII mode and multibyte mode with an at most 2-key combination.

It might be a "you're holding it wrong" situation, but everyone has already learned how to hold it "correctly " - it'll be a disruptive change to default a "natural" hold that you suggest.

Re: I couldn't debug the code because of my name

#160

Earlier quoted context omitted.

I'm really surprised someone technically minded thought it's a good idea to put a non ASCII character in their username. I'd never do that.

I'm really surprised someone technically minded thought it's a good idea to not allow non ASCII alphanumerics in a username. Unicode has been a thing since 1988. Names have included non a-z characters since forever.

Unicode really wasn't practical at all back then. Unless your entire system end-to-end was built internally, you'd have to interact with some non-unicode software. There was also no agreement on a common UTF-8 encoding, and other unicode encodings were all broken anyway.

Names have been spoken and hand-written since forever yet somehow computers aren't good at that so we all tolerate converting them to printed-looking text. Nobody cares, it doesn't matter.

Post reply on HN