Console methods with explicit Locale

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: None
    • Component/s: core-libs
    • b24
    • generic
    • generic

      Currently, there is no `java.io.Console` methods that explicitly take a Locale as an argument for formatting strings. Adding those overloaded methods would be beneficial, i.e,
      ```
      public Console printf(Locale locale, String format, Object... args)
      ```
      and similar ones for `format()`, `readLine()`, and `readPassword()`.

      The motivation here is that there is no alternative for users to do this kind of explicit locale formatting with Console. Other format classes such as String.format(), and its impl Formatter offer such overloads.

            Assignee:
            Naoto Sato
            Reporter:
            Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: