Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5712

LANG in /etc/locale.conf not taken into account

    • None
    • Important
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • ---
    • None

      Description of problem:

      The documentation says, "To set the locale at a system wide level, the file /etc/locale.conf need to be modified." [1]

      Version-Release number of selected component (if applicable):

      How reproducible:

      1. podman run -ti registry.redhat.io/openjdk/openjdk-11-rhel7:latest bash
        [jboss@7bcee20dc1de ~]$ locale
        LANG=
        LC_CTYPE="POSIX"
        LC_NUMERIC="POSIX"
        LC_TIME="POSIX"
        LC_COLLATE="POSIX"
        LC_MONETARY="POSIX"
        LC_MESSAGES="POSIX"
        LC_PAPER="POSIX"
        LC_NAME="POSIX"
        LC_ADDRESS="POSIX"
        LC_TELEPHONE="POSIX"
        LC_MEASUREMENT="POSIX"
        LC_IDENTIFICATION="POSIX"
        LC_ALL=
        [jboss@7bcee20dc1de ~]$ cat /etc/locale.conf
        LANG="en_US.UTF-8"

      Actual results:

      current locale is POSIX

      Expected results:

      current locale is en_US.UTF-8

      Additional info:

      If confirmed, this is rather serious. For instance switching from en_US.UTF-8 to POSIX locale means that all Java properties files will be read with ANSI_X3.4-1968 encoding instead of UTF-8. So Java 9 and later applications that relied on properties being in UTF-8 by default will break in subtle ways.

      [1] https://access.redhat.com/solutions/974273#comment-2353309:~:text=etc/locale.conf.-,To%20set%20the%20locale%20at%20a%20system%20wide%20level%2C%20the%20file%20/etc/locale.conf%20need%20to%20be%20modified.,-To%20set%20the

              jamacku@redhat.com Jan Macku
              alexander.mikhailian@smals.be Alexander Mikhailian (Inactive)
              Jan Macku Jan Macku
              Daniel Rusek Daniel Rusek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: