GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
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?
to your account
system ~/projects/jruby $ jruby -e "p 'FØØ'.downcase"
system ~/projects/jruby $ jruby -e "p 'føø'.upcase"
A crappy workaround for now would be str.to_java.to_upper_case.
Fortunately, UnicodeUtils gem works in JRuby, but dragging a whole gem for such miniscule task seems inappropriate.
So UnicodeUtils.downcase(str) looks a bit like crap, but it's a workaround nontheless.
Actually it appears that MRI does not case fold these characters either, so I'm closing this.
See also rubinius/rubinius#2053 (comment)