[MC-2595] Thousands separator "NBSP"-sign Created: 09/Nov/12 Updated: 03/May/15 Resolved: 09/Nov/12 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.2 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Johan Lindskogen | Assignee: | Unassigned |
| Resolution: | Invalid | Votes: | 0 |
| Labels: | font, region, rendering | ||
| Environment: |
Mac OS X 10.8.2 (also tested on Windows 7, same results) |
||
| Attachments: |
|
| CHK: | |
| Confirmation Status: | Unconfirmed |
| Description |
|
Not sure if this issue presents itself in Minecraft or just when using mods simply because the thousands separator is never used in Vanilla. I'm using Swedish region settings which uses a space as thousands separator and it renders as a "NBSP"-sign instead.(See attached image) EDIT: I was able to reproduce this in Vanilla too! (See additional screenshot!) NumberFormat nf = NumberFormat.getInstance(); System.out.println(nf.format(1000)); System.out.println(nf.format(100000)); System.out.println(nf.format(1000000000)); |
| Comments |
| Comment by Johan Lindskogen [ 10/Nov/12 ] |
|
Well, it could be a problem for the Mod API in the future! |
| Comment by Cloudy (Aaron Mills) [ 10/Nov/12 ] |
|
I don't see why this needs to be reopened. The NBSP is never used in vanilla minecraft - the only way you can get that into the book is by putting it in manually. The issue is your locale is using the NBSP sign for a thousands separator - thankfully, that is never used in Minecraft itself, so it doesn't need to display it. |
| Comment by Sid Ben [ 09/Nov/12 ] |
|
I managed to reproduce in vanilla with char U+A0 that is in fact the non-breakable space char. To reproduce (on windows), using the notepad hold the left ALT key and press 0160, that will create the NBSP char. CTRL+C / CTRL+V that on a book and that's it. I think this can be reopened. Unless it was a design choice of the developers, I'm pretty sure it can be fixed or at least replaced for a regular space. |
| Comment by Johan Lindskogen [ 09/Nov/12 ] |
|
Then, what was Sid Ben referring to? |
| Comment by Cloudy (Aaron Mills) [ 09/Nov/12 ] |
|
Putting it manually in a book is not a way to reproduce it in Vanilla. I'd say this is more of a Java issue using the wrong type of space than a MC issue. |
| Comment by Johan Lindskogen [ 09/Nov/12 ] |
|
Edited! |
| Comment by Sid Ben [ 09/Nov/12 ] |
|
Try to CTRL+C / CTRL+V your text on a book, in vanilla Minecraft. If that bug happens again, you may ask to reopen (do a search first). |
| Comment by Mustek [ 09/Nov/12 ] |
|
This is a mod related issue. |