Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1822

Turkish locale problem during browser detection (on server side)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.3
    • 6.5.2
    • Browser Issue, General
    • Security Level: Jimmy
    • java VM with default locale in turkish
      e.g. after Locale.setDefault(new Locale("tr", "TR"))

    • None

      in turkish locale "MSIE".toLowerCase() becomes "msıe" (NOTE there is no dot on the i <> ı)
      this is no bug in java, but just a locale specific casing-rule

      happens in:

      in Servlets.java
      private static void browserInfo(Map<String, Object> zk, String ua) {
      if (ua != null) {
      ua = ua.toLowerCase();

      could be the following line to avoid this problem
      ua = ua.toLowerCase(Locale.ENGLISH); //use a specific locale that will work

            noahhuang noahhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: