Page MenuHomePhabricator

Add ca_ES.UTF-8 locale to Toolforge hosts
Open, Needs TriagePublic

Description

The migration from trusty to stretch was a breeze except for one thing: UTF- support. I have noticed the following problems:

  • on an 'ls', accents in files are shown as '??'; however, 'ls | cat' shows the accents in filenames.
  • in vi, it's not possible to enter accented characters. If you do, the result is not what you expected.
  • I develop locally and then copy the files to the stretch host. Then, vi shows funny characters. If I try ":e! ++enc=utf8", I get "CONVERSION ERROR IN LINE XXX", and the funny characters become question marks.

You can reproduce the problem with any utf-8 file. I will be adding a few screenshots later

Event Timeline

Joutbis created this task.May 19 2019, 9:04 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 19 2019, 9:04 AM

Some example screenshots.

Please post the output of your locale command.

tools.jorobot@tools-sgebastion-07:~$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=ca_ES.UTF-8
LC_TIME=ca_ES.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=ca_ES.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=ca_ES.UTF-8
LC_NAME=ca_ES.UTF-8
LC_ADDRESS=ca_ES.UTF-8
LC_TELEPHONE=ca_ES.UTF-8
LC_MEASUREMENT=ca_ES.UTF-8
LC_IDENTIFICATION=ca_ES.UTF-8
LC_ALL=
tools.jorobot@tools-sgebastion-07:~$

is this because ca_ES.UTF-8 locale isn't installed?

Perhaps. It is indeed not supported. Can someone install it?

tools.jorobot@tools-sgebastion-07:~$ locale -a
bokmal
C
C.UTF-8
da_DK
da_DK.iso88591
da_DK.utf8
danish
dansk
de_DE
de_DE.iso88591
de_DE.utf8
deutsch
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_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_ZW.utf8
fa_IR.utf8
fi_FI
fi_FI.iso88591
fi_FI.utf8
finnish
french
fr_FR
fr_FR.iso88591
fr_FR.utf8
german
it_CH.utf8
it_IT.utf8
ko_KR.utf8
mr_IN.utf8
nb_NO
nb_NO.iso88591
nb_NO.utf8
nn_NO
nn_NO.iso88591
nn_NO.utf8
no_NO
no_NO.ISO-8859-1
norwegian
nynorsk
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
portuguese
POSIX
pt_PT
pt_PT.iso88591
pt_PT.utf8
romanian
ro_RO
ro_RO.iso88592
ro_RO.utf8
ru_RU
ru_RU.iso88595
ru_RU.utf8
sv_SE
sv_SE.iso88591
sv_SE.utf8
swedish
tg_TJ.utf8

Why is the status "Open, needs Triage" when it's already assigned to Toolforge?

Is anyone looking at it?

bd808 renamed this task from UTF-8 support in toolforge, after migration to stretch to Add ca_ES.UTF-8 locale to Toolforge hosts.Jul 1 2019, 4:21 AM
bd808 edited projects, added Toolforge (Software install/update); removed Toolforge.