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

Turkish locale problem during browser detection (on server side)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.2
    • Fix Version/s: 6.5.3
    • Component/s: Browser Issue, General
    • Security Level: Jimmy
    • Labels:
    • Environment:

      java VM with default locale in turkish
      e.g. after Locale.setDefault(new Locale("tr", "TR"))

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: