Bug 32909 - Length units and locale mismatch
Summary: Length units and locale mismatch
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.3.0 RC2
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-07 15:40 UTC by Cesare Leonardi
Modified: 2011-02-28 08:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Languages options (53.59 KB, image/png)
2011-01-07 15:40 UTC, Cesare Leonardi
Details
Page options (31.08 KB, image/png)
2011-01-07 15:41 UTC, Cesare Leonardi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cesare Leonardi 2011-01-07 15:40:06 UTC
Under Debian and LibO 3.3.orc2 i would like to use english for the interface and italian for locale.


LibO has the right interface to permit this, in fact under Options -> Language settings -> Languages, there are the "Language of" options. Attached how they are set for me ("languages-options.png").


But despite those setting, in various places, lenght units appear in inches and not in millimeters. The most noticeable place is under the page options (see "page-options.png").

If i recall correctly, with OOo3.2.1 lenght units were expressed in cm/mm, as expected.
 And rc1 were the same as rc2.

I have played with the locale variables, but looks like they are ininfluent. This is the output of the current locale with the user who as logged in:

$ locale
LANG=it_IT.utf8
LC_CTYPE="it_IT.utf8"
LC_NUMERIC="it_IT.utf8"
LC_TIME="it_IT.utf8"
LC_COLLATE="it_IT.utf8"
LC_MONETARY="it_IT.utf8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="it_IT.utf8"
LC_NAME="it_IT.utf8"
LC_ADDRESS="it_IT.utf8"
LC_TELEPHONE="it_IT.utf8"
LC_MEASUREMENT="it_IT.utf8"
LC_IDENTIFICATION="it_IT.utf8"
LC_ALL=

And these are the locales available on my system:

$ locale -a

C

en_US.utf8

it_IT.utf8

POSIX


Cesare.
Comment 1 Cesare Leonardi 2011-01-07 15:40:57 UTC
Created attachment 41762 [details]
Languages options
Comment 2 Cesare Leonardi 2011-01-07 15:41:33 UTC
Created attachment 41763 [details]
Page options
Comment 3 Rainer Bielefeld Retired 2011-01-08 00:44:53 UTC
NOT Reproducible with "LibreOffice 3.3.0 RC2 - WIN7  Home Primium (64bit) English UI  [OOO330m18 (build 3.3.0.2)]". Switching locale setting  from EN to IT, always unit for page size switch from inch to mm. 

Linux specific? Or only ivsible if default unit has been selected (I switched from "cm" to "mm" for German locale setting)?

@Cesare Leonardi:
Did you also check other locale settings or only Italy?
Comment 4 Cesare Leonardi 2011-01-09 07:46:31 UTC
(In reply to comment #3)
> Linux specific?

Look at the "Platform" field: "Linux (All)".
Comment 5 Cesare Leonardi 2011-01-10 13:05:30 UTC
(In reply to comment #4)
> > Linux specific?
> 
> Look at the "Platform" field: "Linux (All)".

Sorry Rainer if i looked rude to you. I believed you simply missed the platform field.

However, for the sake of completeness, on the Windows 2000 machine i've tested so far, i haven't seen such behaviour: locale and units were always coherent each other.

Cesare.
Comment 6 Cesare Leonardi 2011-02-27 14:02:08 UTC
In version 3.3.1-1 currently in Debian the problem is resolved: now i correctly see units of measurements as set in my locale.

It is solved since some Debian package update, but i haven't really had time to update the bug status before.

Well done.
Closing.

Cesare.
Comment 7 Rainer Bielefeld Retired 2011-02-27 21:03:01 UTC
Due to
<https://bugs.freedesktop.org/page.cgi?id=fields.html#status>
we should used FIXED only if a known fix has solved the problem; if the problem only disappeared without known reason, please use WORKSFORME.
Comment 8 Cesare Leonardi 2011-02-28 08:39:11 UTC
2011/2/28  <bugzilla-daemon@freedesktop.org>:
> we should used FIXED only if a known fix has solved the problem; if the problem
> only disappeared without known reason, please use WORKSFORME.

Sorry, didn't know. I will read the page you linked.
Thank you for the correction.

Cesare.