Uploaded image for project: 'Lucee Development'
  1. LDEV-780

getLocale() returns incorrect string when used as a string

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.213, 5.0.0.216
    • Fix Version/s: 5.0.0.224
    • Labels:
      None

      Description

      When you use the getLocale() function as a string it returns the wrong string. Lucee 4.5 returns something like:

      english (US)
      

      However Lucee 5 returns something like:

      en_US
      

      Using the simple script:

      <cfscript>
      echo(getLocale())
      </cfscript>
      

      This script should return the same value in Lucee 5 as it returns in Lucee 4.5.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                andrew Andrew Dixon
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: