Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6988

String.format used in JS generation leads to errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 9.10.0
    • 10.0.0-M1, 8.14.0, 9.11.0
    • wicket-core
    • None

    Description

      In case system locale is set to Arabic (ar-EG for ex.)
      Numbers are being printed using Arabic symbols, which is wrong in timeouts for ex.

      here is an example:

      (function(){Wicket.Timer.set('idb3.0', function(){Wicket.Ajax.ajax({"u":"./.?4-1.0-main~container-main","c":"idb3","dep":[function(attrs){return Wicket.BrowserInfo.collect()}]});}, ٥٠);})()
      

      NOTE ٥٠ is printed instead of 50

      The cause is String.format(pattern, args...) which will use system default locale

      I'll try to hunt such issues one-by-one

      Attachments

        Issue Links

          Activity

            People

              solomax Maxim Solodovnik
              solomax Maxim Solodovnik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: