276 points · by valebes · 4y ago · 101 comments
https://en.wikipedia.org/wiki/IBM_PCjr
https://en.wikipedia.org/wiki/IBM_Personal_Computer
(Am picking this nit because the PC is historically very important to our broad industry, and maybe people in the future should still be aware it was a very solidly-constructed piece of office equipment, not a relatively flimsy-looking home computer.)
It took us days to get to the root cause. Turns out that the issue wasn't Safari, it was Mac OS. Chrome was working fine because presumably they do the UTF-8 handling on their own.
I always hear rosy thing about how polished the Apple ecosystem is, but you can imagine how unamusing it is for my small business to spend $3000 of staff time on such a basic thing. I guess I understand it better now when people rant about Safari being the new IE.
Also, just because Chrome feels faster and logs you into your google account without permission, it doesn't mean you shouldn't support alternative browsers. Do not only test your website in Chrome. It may get ignored as not working by non chrome users.
P.S.: I use Firefox, not Safari.
As who has spent a huge amount of time the last few weeks due to an extremely obscure and hard to reproduce Unicode bug in Windows, I can vouch for this. So can my ever receding hairline. Turns out, Unicode is hard.
It's extremely unhealthy for web standards that every deviation from Chrome's behavior is considered a nonsense bug now.
Don't go down with that ship...
this is why I use Qt and ship all the dependencies vetted manually on every platform (freetype, libav, etc). Only way to stay sane is to bypass the operating systems as much as possible and use the exact same code no matter the platform except for the barest-bone operations (opening a GL context, getting key/mouse events, etc). Text handling and rendering, video and image decoding, ... that should never depend on the OS you're using, those are properties of the apps. The more time passes the more I'm thinking that networking also should be deported into the apps too and bypass the OS network stack entirely given how much trouble it tends to give (hello the Bonjour / DNS-SD / ... mess).
I like having my fonts look the same everywhere, and only needing to configure them once. I also like my video and text do decode securely and accelerated.
I do, too ! On all the platforms I use ! (Windows, Mac and Linux). The only way to allow for that is to not use the OS rendering APIs.
> I also like my video and text do decode securely and accelerated.
And I trust ffmpeg much more for doing that correctly than whatever proprietary API there is in mac and windows.
We did some unicode testing on different platforms and this was never an issue. Also to note these weren't complicated emojis or anything like that (e.g. character & skin-tone). Just usual characters with accents that are not in English.
The resolution for now has been using String.Prototype.normalize() with some tricks. It works for our case, but obviously it is not a silver bullet.
This article helped: https://medium.com/@sthadewald/the-utf-8-hell-of-mac-osx-fee...
> So let's say you were looking up something based on the string, it was not there.
What this tells me is you're storing unicode text in a database without using unicode-aware string comparisons. This means that regardless of macOS, you could run into this issue just by having someone submit text in a manner that uses a different normalization form than whatever you've been using, your lookup will fail.
And it's not just NFC vs NFD. There's also NFKC and NFKD, which are the compatibility forms. For example, if I type fi (U+FB01 LATIN SMALL LIGATURE FI), that has the same NFC and NFD forms, but in NFKC and NFKD it becomes fi.
> This article helped: https://medium.com/@sthadewald/the-utf-8-hell-of-mac-osx-fee...
That article flips NFC and NFD.
> The resolution for now has been using String.Prototype.normalize() with some tricks.
Please fix your database to use a proper unicode-aware comparison instead. I don't know what database you're using but this may involve simply telling it what the text encoding of the column is. This is especially true when you start thinking about compatibility normalization (i.e. NFKC/NFKD). I believe the compatibility forms are generally appropriate for string comparisons (e.g. if someone searches for "fi" they should get results for "fi"; try it out in your browser's search field right now if you like) but you certainly don't want to store your text that way. And since you're presumably relying your database to do the lookup for you, this means you need your database to be unicode-aware, otherwise you have no choice but to store the compatibility canonicalization form in order to get search to be correct.
It doesn’t help that I have a friend who works at Apple and acts as though the continued bugginess is my fault unless I take the time to undergo the pain of submitting bugs, for which one never receives a response and which are ignored for literally years on end. We are all unappreciated beta testers.
I've been trying to popularize "gamma testers" for years without much success.
Here's InfoWorld from 1994 - https://books.google.com/books?id=gzgEAAAAMBAJ&pg=PA59&dq=%2...
> Several readers used the same term for what they think the industry has made them become: gamma testers.
> "Gamma testing is just like beta testing in that you get a product that's too buggy for prime time and you help the vendor iron out the problems," explained one. "The only difference is that now we're bug testing what's supposed to be a shipping product that we paid for. And likely as not, these days they'll try to charge us for the privilege of reporting the bugs we find."
Oldest use I could find was from 1983, at https://archive.org/details/sim_micro-marketworld_1983-03-07... :
> Plus, WORDVISION is designed to be "support-free" after the sale, and our unique Pioneer's Club of "gamma testers" is helping insure we live up to that goal.
Here's a 2007 use describing a problem with the phrase, from https://archive.org/details/sdtimes184/page/n43/mode/2up?q=%...
> ... at least a decade since I started calling myself an unpaid gamma tester, for example. But people thought that one meant I specialized in displays and monitors...
It’s why I’d rather support opensource now. As, at least if no one cares to fix it, it can do it myself, or pay someone else to.
The bug: the default iOS mail client chokes if you copy and paste an email link into the to, cc or bcc field. Ie: “mail to:test@test.com”.
The response was “that’s how links work, that’s not a bug in the client”, and while technically that’s true. The best user experience would be parse out the “mailto:” when pasted into the to,cc,bcc field rather than failing to send the email.
And yes, from safari you can select “open in mail” and it will work. But if you need to copy a second mail link to cc, you’re stuffed.
Not a single one was answered in the time I worked there. A few got some 'me toos'
At the same time I filed several bug reports for the new Gnome desktop that was rolling out and they all got answered, fixed or at least closed with a short answer.
It was only a short time I worked in that ecosystem. But as far as it worked out for me, I got zero support for several major bugs. Definitely not what I expected. Definitely not a OS I am willing to spend productive time on.
What makes it worse is that you are PAYING to test their buggy software.
I found that doing a small amount of activity like resizing other non-Safari windows caused extra glitchiness, so I was doing that throughout.
Apparently it's from the same author David Buchanan.
I don't think Apple have revealed the specifics of what process their human reviewers use (as a "security by obscurity" approach, and to prevent the bad press of admitting that they potentially subject low wage contractors to reviewing mentally damaging illegal images), but it's at least conceivable that an iPhone user could receive a series of images which look like (for example) bad scans of paper documents, but, when rendered on a reviewer's screen, look like images that require police attention.
I don’t have access to desktop Safari so I’m not sure what it’s meant to do.
Is there a tool that can detect ambiguous PNGs and other similar things?
https://superuser.com/questions/579216/why-does-this-png-ima...
Or with, uh, analog image processing:
https://en.wikipedia.org/wiki/The_dress
If you're hosting an image, you can also have some fun with referrer, user-agent, geo-ip, etc, based redirection. Where you post an image in a forum or similar, and different users see a different image.
Thankfully the bug is limited to how it's rendered...for now.