Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM has "ß".toUpperCase() be "ß" (German sharp s), not "SS". #18061

Closed
lrhn opened this issue Apr 7, 2014 · 5 comments
Closed

VM has "ß".toUpperCase() be "ß" (German sharp s), not "SS". #18061

lrhn opened this issue Apr 7, 2014 · 5 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. library-core P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@lrhn
Copy link
Member

lrhn commented Apr 7, 2014

The Unicode upper-case variant of "ß" (U+00DF) is "SS", but the VM returns "ß" for "ß".toUpperCase().

@iposva-google
Copy link
Contributor

Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Low label.

@lrhn
Copy link
Member Author

lrhn commented Apr 8, 2014

It seems the VM is using a simple Unicode case mapping (I believe it is the default for the ICU library), and JavaScript is using the full case mapping.
The simple case mapping can only create a string with the same length, but the full case mapping can generate a longer string.
Unicode talks about simple/full versions for case folding, but I haven't found where they say it about case mapping.

The String.toUpperCase() documentation only states that it uses the language independent unicode mapping, nothing about simple/full.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@lrhn lrhn added Type-Defect P3 A lower priority bug or feature request area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. library-core labels Aug 4, 2014
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Mar 1, 2016
@srawlins
Copy link
Member

Duplicate of #6706.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. library-core P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

5 participants