mojira.dev
MC-261334

Bad text in timestamp in world selection when running on Java 20

When running on Java 20, the timestamp has a weird character in it. This seems to occur on all recent versions of the game, at least back to 1.18.2. It does not occur when running on Java 19, 18, or 17.

 

(Current) Code Analysis:

 

ICU 72 changed date formatting to use Narrow-No Break Spaces (NNBSP), however the Minecraft text renderer does not consider this a space and renders the text NNBSP instead of a space, even though they should visually be the same. There is no easy fix outside either replacing all NNBSP with spaces or allowing NNBSP to be rendered properly.

Linked issues

Attachments

Comments 3

I have managed to reproduce the issue on macOS, on a fresh install of Minecraft and Java 20.

Update: It seems like this is not restricted to Java, but this issue is happening across many languages due to a change in how date formatting is handled in Unicode. I'll look for a fix and post a code analysis.

Duplicate of MC-164687. This is just an instance where it becomes visible.

ims212

(Unassigned)

Plausible

Text

1.19.4

Retrieved