Project

General

Profile

Actions

Task #2762

closed

Container uses POSIX locale

Added by Petr Fišer almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Petr Fišer
Target version:
Start date:
04/16/2021
Due date:
% Done:

100%

Estimated time:

Description

POSIX locale is a bit dated stuff... we should use en_US.UTF-8.

Actions #1

Updated by Petr Fišer almost 2 years ago

Turns out en_US.UTF-8 is properly installed. The problem here is with LANG not getting set.

[root@appserver /]# cat /etc/locale.conf 
LANG="en_US.UTF-8" 
[root@appserver /]# echo $LANG

[root@appserver /]# 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=
[root@appserver /]# 
[root@appserver /]# 
[root@appserver /]# 
[root@appserver /]# export LANG="en_US.UTF-8" 
[root@appserver /]# echo $LANG
en_US.UTF-8
[root@appserver /]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8" 
LC_NUMERIC="en_US.UTF-8" 
LC_TIME="en_US.UTF-8" 
LC_COLLATE="en_US.UTF-8" 
LC_MONETARY="en_US.UTF-8" 
LC_MESSAGES="en_US.UTF-8" 
LC_PAPER="en_US.UTF-8" 
LC_NAME="en_US.UTF-8" 
LC_ADDRESS="en_US.UTF-8" 
LC_TELEPHONE="en_US.UTF-8" 
LC_MEASUREMENT="en_US.UTF-8" 
LC_IDENTIFICATION="en_US.UTF-8" 
LC_ALL=

I guess if we globally set $LANG in Dockerfile, it will solve the issue. Implementation and testing needed.

Actions #2

Updated by Petr Fišer almost 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Fixed in git.789541d, tested, awaiting release.

Actions #3

Updated by Petr Fišer almost 2 years ago

  • Target version set to 9.0.41-r1
Actions #4

Updated by Petr Fišer almost 2 years ago

  • Status changed from Resolved to Closed

Released as 9.0.41-r1.

Actions

Also available in: Atom PDF