Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6349

JSON Generation breaks if other locale than C is used.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.2.0
    • stout
    • None
    • Mesosphere Sprint 49

    Description

      In locales where the decimal separator is different from a ., i.e. Latin American locales, Europe locales and most of asia, the JSON generated is invalid, since it uses the system locale.

      Example, the following code will be generated:

      {
        "float_number" : 1234567,9871
      }
      

      Instead of the expected:

      {
        "float_number" : 1234567.9871
      }
      

      This problem doesn't affect Mesos executables since they completely ignore the system's locale, but it does affect applications built in Java upon stout and libprocess since the JVM does set the process locale to the system one.

      Attachments

        Activity

          People

            arojas Alexander Rojas
            arojas Alexander Rojas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: