News for hackers. Stuff that matters.
Re:Abe explains choice of Reiwa for next era name by danbolt on Sunday March 31, 2019 @11:15PM (#19540131)
Are there any developers with Unicode experience able to comment on this? I know the character for Reiwa has been reserved but I’m unsure if programmers are familiar with Y2K-esque bugs that could happen.
Re:Abe explains choice of Reiwa for next era name by fenomas on Sunday March 31, 2019 @11:45PM (#19540311)
The new name just uses standard characters, but what you're probably referring to is the fact that Unicode 12.1 will have a character for the two of them compressed into one glyph.

Details: http://blog.unicode.org/2018/09/new-japanese-era.html

Compressed glyphs like that are sometimes used on paperwork and whatnot, but everyday usage just uses the standard characters.

Re:Abe explains choice of Reiwa for next era name by mappu on Monday April 01, 2019 @01:20AM (#19540702)
What are the benefits of this approach compared to a ligature at the font-level?
Re:Abe explains choice of Reiwa for next era name by masklinn on Monday April 01, 2019 @02:29AM (#19540997)
The square / single-glyph version is only used in some / limited contexts, in most contexts (including the emperor's eventual posthumous name) heisei would be written and displayed "normally".
Re:Abe explains choice of Reiwa for next era name by fenomas on Monday April 01, 2019 @02:06AM (#19540913)
I'm not competent to answer that, but the "merged glyph" versions of the other four modern era names date from older encodings like EUC and shift-JIS, and are presumably in unicode for compatibility. So the rationale for adding a new one may just be extending that set.
Re:Abe explains choice of Reiwa for next era name by triodan on Sunday March 31, 2019 @11:36PM (#19540262)
It's a combination of two existing characters, the rei as in meirei/命令 (order, command) and wa as in heiwa/平和 (peace, harmony). No new characters need to be reserved.
Re:Abe explains choice of Reiwa for next era name by qlk1123 on Sunday March 31, 2019 @11:42PM (#19540296)
Also, this seems to be the first time that Japanese Royal choose the kanjis from their classical literature[1] instead of Chinese literature.

[1] https://en.wikipedia.org/wiki/Man%27y%C5%8Dsh%C5%AB

Re:Abe explains choice of Reiwa for next era name by tanilama on Monday April 01, 2019 @01:11AM (#19540666)
Rei, 令, in this case means 'good, fortunate', not command.
Re:Abe explains choice of Reiwa for next era name by archgoon on Monday April 01, 2019 @02:19AM (#19540969)
Huh, according to Jim Breen's dictionary (http://nihongo.monash.edu/cgi-bin/wwwjdic) 'good, fortunate' is '礼' (rei). '令' (rei) is listed as 'command, decree'. The official character that is being used is '令'.

Is there some rule or convention that explains why 令 means 'good, fortunate' here? Is it due to the usage in the 7th century poetry that is referenced in the article?

Re:Abe explains choice of Reiwa for next era name by comex on Monday April 01, 2019 @05:56AM (#19541814)
Even though there's an explanation, I've seen a bunch of negative reaction to the name from Japanese people online because of the association with "command", also linking it to the current prime minister and his relatively militaristic politics.
Re:Abe explains choice of Reiwa for next era name by archgoon on Monday April 01, 2019 @03:43PM (#19547362)
Interesting; came across this Twitter thread with a fairly detailed analysis.

https://mobile.twitter.com/nick_kapur/status/111270395164693...

Re:Abe explains choice of Reiwa for next era name by tanilama on Monday April 01, 2019 @02:35AM (#19541024)
In this particular case, '令月' means[1], a good month.

https://kotobank.jp/word/%E4%BB%A4%E6%9C%88-660939

If we have to trace back even further, it can date back to the ancient Chinese classic, the Classic of Poetry, where it is being used as good/respectful:

https://baike.baidu.com/item/%E4%BB%A4%E9%97%BB%E4%BB%A4%E6%...

Re:Abe explains choice of Reiwa for next era name by needle0 on Monday April 01, 2019 @03:58AM (#19541384)
The namers can publicly claim it to mean one thing while privately intending to be another, of course.
Re:Abe explains choice of Reiwa for next era name by tanilama on Monday April 01, 2019 @04:38AM (#19541533)
In case of Chinese characters, they can be interpreted under different context, I agree.
Re:Abe explains choice of Reiwa for next era name by ekianjo on Monday April 01, 2019 @05:39AM (#19541753)
Unless you do mind reading this is all a matter of interpretation. There is no single meaning.
Re:Abe explains choice of Reiwa for next era name by ardy42 on Sunday March 31, 2019 @11:30PM (#19540232)
> Are there any developers with Unicode experience able to comment on this? I know the character for Reiwa has been reserved but I’m unsure if programmers are familiar with Y2K-esque bugs that could happen.

They create a brand new character for the era names? I find that a little hard to believe, because Wikipedia [1] already has the Reiwa era listed and my computer has a font that can display the kanji for it.

[1] https://en.wikipedia.org/wiki/List_of_Japanese_era_names

Re:Abe explains choice of Reiwa for next era name by Gaelan on Sunday March 31, 2019 @11:38PM (#19540269)
http://blog.unicode.org/2018/09/new-japanese-era.html was posted here yesterday, but the short answer is that the era can be referred to using two existing characters (for the current era: 平成) or with one new combined one (㍻). Wiki is using the former, so it doesn't need software support.
Re:Abe explains choice of Reiwa for next era name by needle0 on Monday April 01, 2019 @10:50PM (#19550632)
Aside from the new combined glyph, One potentially major issue is that the character 令 exists in two locations in Unicode: U+4EE4 and U+F9A8. The latter is a compatibility variant, and depending on the how smart the text processing code used is, it may or may not be considered equal to the former.

Hence, that's now one more thing to test and work around for the poor engineers working karoshi hours, only given one month to implement changes on and test the ungodly numbers of computer systems all around the country.

Really, this one-month compromise between conservatives and engineers was pretty much the worst possible result: too short to work with any breathing room, too long to throw up hands and abandon the idea of implementing it in time.

Re:Abe explains choice of Reiwa for next era name by qlk1123 on Sunday March 31, 2019 @11:39PM (#19540273)
$ echo "令和" | hexdump -C

00000000 e4 bb a4 e5 92 8c 0a |.......|

00000007

Obviously the individual kanjis are reserved in CJK plane. But how is it related to Y2K-esque bugs?

Re:Abe explains choice of Reiwa for next era name by james_s_tayler on Sunday March 31, 2019 @11:46PM (#19540317)
Because this stuff is hardcoded into the standard library (at least in Java I know it is) and I assume it's the same for other things.

For example any dates in the future like 2020 will show up wrong. Where it ought to be reiwa 2 it will be Heisei 31 which doesn't even exist.

Heaven forbid you were doing something crazy like matching on strings for the date etc you could get into a world of hurt.

Mostly though you always work with real, actual dates and use the standard library support for the Japanese era date to calculate outputs for display only. Mostly it just means there are a few forms/invoices out there with a non-existent date on them but oh well.

Re:Abe explains choice of Reiwa for next era name by glandium on Monday April 01, 2019 @12:46AM (#19540573)
Heisei 31 is this year. Heisei 32 and above are the ones that don't exist.
Re:Abe explains choice of Reiwa for next era name by james_s_tayler on Monday April 01, 2019 @12:48AM (#19540586)
Thankfully I don't live in Japan and have to deal with that system on a daily basis.
Re:Abe explains choice of Reiwa for next era name by Larrikin on Monday April 01, 2019 @06:13AM (#19541882)
It's been thirty years since anyone has to touch that code.
Re:Abe explains choice of Reiwa for next era name by glandium on Monday April 01, 2019 @06:43AM (#19542012)
Some systems are even still on the previous era (shōwa). Some may even hit a Y2K-like problem in 2025 (shōwa 100).
Re:Abe explains choice of Reiwa for next era name by Smithalicious on Monday April 01, 2019 @03:07PM (#19546956)
I'm now imagining some kind of action movie where the emperor lives too long and a band of programmers have to assassinate them lest their code breaks.
Re:Abe explains choice of Reiwa for next era name by enqk on Monday April 01, 2019 @01:49AM (#19540848)
Isn’t Reiwa 1 also this year?
Re:Abe explains choice of Reiwa for next era name by fenomas on Monday April 01, 2019 @02:15AM (#19540951)
It's both - dates through April 30 are Heisei 31, and dates from May 1 are Reiwa 1, is the official take.
Re:Abe explains choice of Reiwa for next era name by earthboundkid on Monday April 01, 2019 @09:50AM (#19543185)
Well, I don't foresee that causing any bugs.
Re:Abe explains choice of Reiwa for next era name by thaumasiotes on Monday April 01, 2019 @11:40AM (#19544479)
Bugs of that type should have been worked out long ago; it is not the norm for the era change to coincide with the new year.
Re:Abe explains choice of Reiwa for next era name by Nullabillity on Monday April 01, 2019 @01:01PM (#19545461)
It is not the norm to reset your date system every 30 or so years.
Re:Abe explains choice of Reiwa for next era name by thaumasiotes on Monday April 01, 2019 @09:38PM (#19550271)
...yes it is?
Re:Abe explains choice of Reiwa for next era name by glandium on Monday April 01, 2019 @02:16AM (#19540953)
From May 1st onwards, yes.

Heisei 31 April 29, Heisei 31 April 30, Reiwa 1 May 1, Reiwa 1 May 2, etc.

Re:Abe explains choice of Reiwa for next era name by danbolt on Monday April 01, 2019 @12:22AM (#19540479)
A special character of the two kanji are combined into one for official document use. This has been reserved at U+32FF.