JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-3866

Localized languages screw up JRuby's method proxying from Java classes.

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Java Integration
    • Labels:
      None
    • Number of attachments :
      0

      Activity

      Hide
      Jeremy Ashkenas added a comment -

      Sorry, hit enter and can't edit the ticket.

      For full details, check out:

      http://github.com/jashkenas/ruby-processing/issues/closed/#issue/6

      Show
      Jeremy Ashkenas added a comment - Sorry, hit enter and can't edit the ticket. For full details, check out: http://github.com/jashkenas/ruby-processing/issues/closed/#issue/6
      Hide
      Charles Oliver Nutter added a comment -

      Interesting. So when we go to decapitalize the characters in a method name, it's using Java's built-in decapitalization. If locales are messed up, it may use a lowercase letter from another alphabet entirely.

      I believe we are using String.toLowerCase, which does localization by default. However there's a second version that accepts a locale. I am reluctant to switch to this version and hardcode a locale since there may be cases out there that we do want to localize downcasing. But it would solve the problem...

      Thoughts, anyone?

      Show
      Charles Oliver Nutter added a comment - Interesting. So when we go to decapitalize the characters in a method name, it's using Java's built-in decapitalization. If locales are messed up, it may use a lowercase letter from another alphabet entirely. I believe we are using String.toLowerCase, which does localization by default. However there's a second version that accepts a locale. I am reluctant to switch to this version and hardcode a locale since there may be cases out there that we do want to localize downcasing. But it would solve the problem... Thoughts, anyone?
      Hide
      Jeremy Ashkenas added a comment -

      In what case would you want to preserve the localization? Only when you're trying to access a Java class from JRuby, and the java class's method names are non-English non-ASCII, right? I'd imagine that's a way, way smaller percentage of code than the folks who are simply trying to run JRuby programs on computers in other countries.

      Show
      Jeremy Ashkenas added a comment - In what case would you want to preserve the localization? Only when you're trying to access a Java class from JRuby, and the java class's method names are non-English non-ASCII, right? I'd imagine that's a way, way smaller percentage of code than the folks who are simply trying to run JRuby programs on computers in other countries.

        People

        • Assignee:
          Unassigned
          Reporter:
          Jeremy Ashkenas
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated: