Live data from Hacker News

Abe explains choice of Reiwa for next era name

japantoday.com

1–10 of 87 posts

Re: Abe explains choice of Reiwa for next era name

#3
post #2

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.

> 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

#4
post #2

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.

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

#5
post #3
post #2

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.

> 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] h…

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

#6
post #2

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.

$ 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

#7
post #4
post #2

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.

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.

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

#8
post #2

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.

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

#9
post #6
post #2

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.

$ 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?

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.

Post reply on HN