#7558 closed defect (fixed)
History window shows XML entities in user names
Reported by: | kolen | Owned by: | team |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Core | Version: | tested |
Keywords: | history, entities, entity | Cc: |
Description ¶
If user name contain characters such as apostrophe ('), history window shows such characters as XML entity, i.e. "'".
version 5047
Change History (6)
by , 13 years ago
Attachment: | josm-history-entities-in-names.png added |
---|
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've committed a fix, but it doesn't show up in trac...
comment:4 by , 13 years ago
Yes, I've tried all except \t \n and \r. My Java is
java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
comment:5 by , 13 years ago
FYI I have created a bug on bugs.sun.com:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7158257
It has been closed as "not a defect" because Java supports only HTML 3.2, but "apos;" is not even in HTML 4. Indeed, it appeared only in XHTML 1.0: http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML
This wikipedia list is useful to find entities not supported by Java (everything introduced after HTML 3.2). I will run some tests and maybe add some other exceptions.
I can reproduce it with:
Can you post you system information, please ? (first lines of Help->Status report).
@team: This change has been intentionally made in r4602:
http://josm.openstreetmap.de/changeset/4602/josm#file7 (line 444)
But I don't understand why the HTML entities are not replaced. Is it a LnF-specific bug ?