Earlier quoted context omitted.
Interesting! This one keeps the 7-day week, which means it has a chance of succeeding. But wouldn't inserting an entire extra week every few years cause problems with things like monthly salaries and mortgage payments?
The financial year assumes 30 days per month, 12 months per year, 360 days per year. That’s what’s the basis for your salary calculation.
OpenBSD removes support for non-UTF8 locales
141–150 of 186 posts
Re: OpenBSD removes support for non-UTF8 locales
#142Earlier quoted context omitted.
> One problem that I have is that current UTF-8 implementations typically are not "8 bit clean", in the sense that GNU and modern Unix tools typically attempt to be; they crash, usually by throwing an exception Crashing on invalid data sounds like a great idea. Leaving garbage through doesn't.
Is it really garbage? If we want to be true to UNIX's (questionable) "Write programs to handle text streams, because that is a universal interface" ethos, our definition of "text" has to admit all possible byte strings to be "universal". And the so-called C locale historically did.
Invalid UTF-8 when valid UTF-8 was expected? Yes.
> "Write programs to handle text streams, because that is a universal interface" ethos, our definition of "text" has to admit all possible byte strings to be "universal"
Random bytes are not text. The Unix ethos is "communicate via arbitrary binary streams" but programs which only understand text understand text, not random-bytes-which-are-not-text. It seems sensible for programs to have more restrictions on their input than the general-purpose communication protocol does: would you expect jq to try and process input which is not JSON in any way, shape or form despite being it being billed a JSON processor? Because that's not what it's going to do, at least not by default.
Re: OpenBSD removes support for non-UTF8 locales
#143Earlier quoted context omitted.
> One problem that I have is that current UTF-8 implementations typically are not "8 bit clean", in the sense that GNU and modern Unix tools typically attempt to be; they crash, usually by throwing an exception Crashing on invalid data sounds like a great idea. Leaving garbage through doesn't.
Crashing in the "/* oops! */ exit(1)" sense is great. Crashing in the buffer overflow sense is not. OpenBSD treats all of the latter as potential security vulnerabilities.
Re: OpenBSD removes support for non-UTF8 locales
#144I dream of a world where everything is UTC, UTF-8, and metric.
Personally, I wish everyone used the 24:00 clock. Maybe the military has messed me up, but I really prefer seeing something like 18:22 over 6:22pm. It just seems simplier.
6:00pm
6:00PM
6:00 PM
6:00 P.M.
6PM
or just 6:00Re: OpenBSD removes support for non-UTF8 locales
#145Earlier quoted context omitted.
1. it does have the benefit that it's cross-cultural, you can actually talk to people outside your cultural bubble 2. it's got the advantage that you're using the same measurements as all your trade partners so people don't need two production lines anymore 3. it's got the advantage that people going into science and engineering don't need to build a whole new set of unit references because they've got the one which…
> 1. it does have the benefit that it's cross-cultural, you can actually talk to people outside your cultural bubble We already do that. > 2. it's got the advantage that you're using the same measurements as all your trade partners so people don't need two production lines anymore Two production lines? For what? > 3. it's got the advantage that people going into science and engineering don't need to build a whole new…
Do you really? Whenever I hear an American telling the temperature of the weather, I have no idea what they mean. I have to guess from the context if it's hot or cold, and even what units they're using because they rarely mention the "Fahrenheit" part.
Conversely, how many Americans would recognize that "35 degrees" is blisteringly hot while "15 degrees" means you'll need a jacket and "40 degrees" could kill you if you don't find shelter quickly?
Re: OpenBSD removes support for non-UTF8 locales
#146Earlier quoted context omitted.
Easy, we just kill off the idea of leap seconds. Someone please convince Russia and UK to agree so we can do it.
> Easy, we just kill off the idea of leap seconds. OK, now everyone who cares how much time has passed in terms of the Earth's rotation needs to keep a time separate from everyone else. Astronomers come to mind, for example.
- don't rely on their laptop's system clock, - don't use UTC either because of minor rotational noise/drift and the discontinuity around the leap-second, and - find the whole 24-hour clock thing a little useless, not being seasonally adjusted etc.
I bet they'd prefer TAI to UTC (or even "Google time"), because they've probably got their own timekeeping systems that will probably interact more smoothly (heh) with it.
More to the point, there are approximately zero astronomers on Earth, and approximately seven billion non-astronomers. Even if astronomers do prefer UTC, it's better to make them have their own systems to add or subtract twenty-something seconds from TAI than forcing all of my timekeeping devices to have a database of historical leap-seconds and an internet connection to hear about new ones.
Not to mention the fact that I can't write down what the time will be in UTC in 86400 * 1000 seconds... Absolutely ridiculous.
Re: OpenBSD removes support for non-UTF8 locales
#147Earlier quoted context omitted.
Easy, we just kill off the idea of leap seconds. Someone please convince Russia and UK to agree so we can do it.
No thank you. Just store times on computers as $epoch+$offset and then convert to UTC when displayed to the user. That way, only the display routine has to care about leap seconds and it won't break anything.
Maybe you were suggesting an improvement to UNIX time, though, in which case I think the grandparent and I would get behind your proposal.
Re: OpenBSD removes support for non-UTF8 locales
#148I dream of a world where everything is UTC, UTF-8, and metric.
Personally, I wish everyone used the 24:00 clock. Maybe the military has messed me up, but I really prefer seeing something like 18:22 over 6:22pm. It just seems simplier.
Maybe digital clocks/watches have influenced this preference, but I still think it is a good idea, because it is unambiguous.
Re: OpenBSD removes support for non-UTF8 locales
#149Earlier quoted context omitted.
It was in fact intentionally broken to find out where removing single-byte locales hurts our users most. We have a hackathon coming up with devs committed to making UTF-8 work in more base utilities. If that works out, and the most sore points of latin1/koi-8/etc users have been adequately addressed, 5.9 will ship with only the UTF-8 locale (and of course the default "C" locale -- ASCII). If this approach turns out t…
My first thought was, what about the "C" locale so good to see that question already answered. I really wish there was some sort of standard "U" locale that would be the same as "C" but UTF-8, and ISO rather than US format dates.
Re: OpenBSD removes support for non-UTF8 locales
#150Earlier quoted context omitted.
> he lost interest in living I get what you're trying to accomplish with the parallel construction, but that's a pretty callous way to describe it :/
I'm sorry I upset you. I didn't mean to.
The poster didn't express that he was upset. He expressed an opinion that your description was callous.