steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Chat timestamps break on setting locale to Norwegian - bokmål

Open C0rn3j opened this issue 8 years ago • 4 comments

Your system information

  • Steam client version (build number or date): No idea how to check and I don't want to say "latest"
  • Distribution (e.g. Ubuntu): Arch
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

Setting locale to Norwegian[bokmål] screws up timestamps in the chat.

Steps for reproducing this issue:

  1. set locale to nb_NO.UTF-8 UTF-8
  2. reboot
  3. enable timestamps in Steam (and possibly set steam to Norwegian)
  4. timestamps are screwed up

kl. 09 +0200 - Xyz: i mean it's 9:51 rn kl. 10 +0200 - Xyz er nå Tilkoblet. kl. 10 +0200 - C0rn3j: yeah it only shows the hour

C0rn3j avatar Sep 25 '17 08:09 C0rn3j

Hello @C0rn3j, steam expects that en_US.UTF-8 is available on the system, even if it is not set. Can you check if it is not commented out in /etc/locale.gen and is generated?

kisak-valve avatar Sep 25 '17 12:09 kisak-valve

It is generated.

[0] % locale -a
C
en_US.utf8
nb_NO.utf8
POSIX

[0] % locale
LANG=nb_NO.UTF-8
LC_CTYPE=nb_NO.UTF-8
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATION=
LC_ALL=

C0rn3j avatar Sep 25 '17 12:09 C0rn3j

Same issue for me, Ubuntu 18.04. Chat example (from today):

kl. 15 +0200 - x10an14: I didn't get it to work with Wine last time I tried (the Windows emulator)
kl. 15 +0200 - friend: that was it one min
kl. 15 +0200 - friend: you useing redion GFX
kl. 15 +0200 - friend: or missing DLL 'mfc42.dll'

System info:

x10an14@x10-N13xWU:~$ lsb_release -a && uname -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04 LTS
Release:	18.04
Codename:	bionic
Linux x10-N13xWU 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
x10an14@x10-N13xWU:~$ locale && locale -a
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=nb_NO.UTF-8
LC_TIME=nb_NO.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nb_NO.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nb_NO.UTF-8
LC_NAME=nb_NO.UTF-8
LC_ADDRESS=nb_NO.UTF-8
LC_TELEPHONE=nb_NO.UTF-8
LC_MEASUREMENT=nb_NO.UTF-8
LC_IDENTIFICATION=nb_NO.UTF-8
LC_ALL=
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
nb_NO.utf8
POSIX
x10an14@x10-N13xWU:~$ egrep 'en_US|nb_NO' /etc/locale.gen && date
# en_US ISO-8859-1
# en_US.ISO-8859-15 ISO-8859-15
en_US.UTF-8 UTF-8
# nb_NO ISO-8859-1
nb_NO.UTF-8 UTF-8
sø. 10. juni 17:29:58 +0200 2018
x10an14@x10-N13xWU:~$

Edit: Forgot to add version of installed steam client:

x10an14@x10-N13xWU:~$ apt show steam
Package: steam:i386
Version: 1:1.0.0.54+repack-5ubuntu1
Priority: extra
Section: multiverse/games
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Games Team <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4 106 kB
(...)

x10an14 avatar Jun 10 '18 15:06 x10an14

This is simply related to the (incorrect?) formats in the nb_NO file.

The default time format is written as kl. %H.%M %z where %H is Hour, %M is Minute and %z is... Time Zone Offset.

LowSociety avatar Jul 09 '22 09:07 LowSociety