Bug#290636: Localization do not honor LC_NUMERIC (maybe others)
Package: openoffice.org-l10n-lt
Version: 1.1.3-4
Decimal separator is selected only on LANG environment variable basis.
It does not allow to override numeric (any?) aspects of environment with
LC_NUMERIC (LC_xxx) variables.
In lt locale decimal separator is comma (,). I need it be period (.) and
therefore I have LC_NUMERIC=C set. StarCalc do not take that into account:
export LANG=lt_LT.UTF-8
scalc
in cell enter: =2.2+2.3
result will be 76771
expected result 4.5
If I enter =2,2+2,3 I get 4,5
if I start scalc with LANG=C, it works as expected (result 4.5)
Environment:
$ locale
LANG=lt_LT.UTF-8
LC_CTYPE="lt_LT.UTF-8"
LC_NUMERIC=C
LC_TIME="lt_LT.UTF-8"
LC_COLLATE="lt_LT.UTF-8"
LC_MONETARY="lt_LT.UTF-8"
LC_MESSAGES="lt_LT.UTF-8"
LC_PAPER="lt_LT.UTF-8"
LC_NAME="lt_LT.UTF-8"
LC_ADDRESS="lt_LT.UTF-8"
LC_TELEPHONE="lt_LT.UTF-8"
LC_MEASUREMENT="lt_LT.UTF-8"
LC_IDENTIFICATION="lt_LT.UTF-8"
LC_ALL=
$ dpkg -l openoffice.org-\*|grep '^i'
ii openoffice.org 1.1.3-4 OpenOffice.org office suite binary files
ii openoffice.org 1.1.3-3+1 Debian specific parts of OpenOffice.org
ii openoffice.org 1.1.3-4 English (US) language package for
OpenOffice
ii openoffice.org 1.1.3-4 Lithuanian language package for
OpenOffice.o
--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
Reply to: