Issue 19272 - custom format (trailing group separators not converted)
Summary: custom format (trailing group separators not converted)
Status: CLOSED WONT_FIX
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC3
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-08 16:46 UTC by patricearnal
Modified: 2013-08-07 15:15 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
an exemple of my problem (6.54 KB, application/octet-stream)
2003-09-08 16:48 UTC, patricearnal
no flags Details
Case test (6.54 KB, application/octet-stream)
2003-09-09 15:26 UTC, patricearnal
no flags Details
screen capture (24.63 KB, image/gif)
2003-09-09 15:29 UTC, patricearnal
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description patricearnal 2003-09-08 16:46:41 UTC
A cell is formatted with the user defined format : (1 234,12)
When saved in Xcel format and re-opened the display is correct "8,97" for instance
When saved in Office format and re-opened the display reads as 0,01. ( but the
value remains correct.).
Comment 1 patricearnal 2003-09-08 16:48:01 UTC
Created attachment 9093 [details]
an exemple of my problem
Comment 2 frank 2003-09-09 10:47:48 UTC
Hi,

I tried to reproduce it with OOo11rc4 and was not able to do so. Under
all conditions I've tested, I got the 8,97.

Please test it again using OOo1.1rc4.

For now I set the resolution to worksforme. Feel free to reopen it if
your problem still exist in RC4.

Frank
Comment 3 frank 2003-09-09 10:48:14 UTC
set resolution to worksforme
Comment 4 patricearnal 2003-09-09 15:24:40 UTC
Hello

I downloaded and installed OOo_1.1rc4_Win32Intel_install.zip
and the problem remains : when opening the file test.sxc the display is 
0.01 and the value is 8,97

The format string is : 
[>0]# ##0,00 ;[<0](# ##0,00);- 

Comment 5 patricearnal 2003-09-09 15:26:25 UTC
Created attachment 9132 [details]
Case test
Comment 6 patricearnal 2003-09-09 15:29:28 UTC
Created attachment 9133 [details]
screen capture
Comment 7 frank 2003-09-09 16:54:46 UTC
Hi,

the problem is, you need a french locale to reproduce it !

I assign it to Eike as he is responsible for the numberformatter.

Eike it seems that the decimal separator in the user defined format is
interpreted as thousands seperator.

Frank

PS Eike could you evaluate the problems that may occur. If they are
not so big, Prio and Target can be adjusted.
Comment 8 ooo 2003-09-10 12:44:16 UTC
Well, what shall I say.. it's not a bug, it's a feature ;-)

No, really, it would have been obvious in another locale, but
unfortunately the french group (AKA thousands) separator is a blank,
so it took me quite some seconds to realize that this number format code
[>0]# ##0,00 ;[<0](# ##0,00);- 
contains a trailing blank in the positive subformat, which in this
case acts as a separator like documented: the number is divided by
thousand.

However, this reveals another bug: those trailing group separators are
not converted if loaded in a different locale, otherwise it would have
been obvious in an English-US locale, the converted code should read
[>0]#,##0.00,;[<0](#,##0.00);-,
instead of
[>0]#,##0.00 ;[<0](#,##0.00);- 

I adjust the priority to a normal P3 but keep OOo1.1.1 as a target as
this may display wrong values in interchanged documents.
Comment 9 oc 2003-10-08 14:08:04 UTC
According to the roadmap of OpenOffice.org 1.1
(http://tools.openoffice.org/releases/OpenOffice_org_1_x.html) this
issue has been scheduled for 1.1.2.
Comment 10 thorsten.ziehm 2004-03-10 09:58:26 UTC
Because of limited resources for OOo1.1.2, we have decided to fix this problem
in OOo2.0. I changed the target.
Comment 11 patricearnal 2004-03-10 17:24:49 UTC
I regret you delayed the resolution of this problem : 
This is clearly an internationalization item  ( In France the space is used as
thousand delimiter ) and such limitation, associated with the interpertation of
the dot on the numeric keypad ( which gives a dot instead of a coma as in Excel)
completely bans OpenOffice from french organizations.
Comment 12 ooo 2004-03-11 15:22:03 UTC
Hi Patrice,

As stated above, what you experienced at first hand (number displayed
differently) is not a bug; if the format code has trailing group separators
(which happens to be a space in fr_FR locale) the number is displayed dividing
it by multiples of 1000. This is a feature and documented. What this issue now
is about, is the fact that upon loading the document in _another_ locale the
trailing group separators aren't converted properly and the displayed number is
not divided by multiple of 1000. This is a very special case of trailing
separators being used _and_ working under different locales (and some Xcl file
conversion issue too, since the format code should be preserved), this
regardless of the locales being used. IMHO there's no reason why this should
restrain someone from using OOo in a French production environment.

Eike
Comment 13 ooo 2004-10-06 14:23:31 UTC
I don't know what happened to the documents, but they seem to be broken somehow.
If I load them once in a fr_FR locale, save them again, and then load them in an
en_US locale, the number format is converted correctly and results in
[>0]#,##0.00,;[<0](#,##0.00);- 
note the trailing ',' group separator in the first subformat that displays 8.97
as 0.01. This works both in a recent OOo1.1.2/SO7PPx and the OOo1.9.m54 snapshot
build =>  resolve wontfix.
Comment 14 ooo 2004-10-06 14:23:56 UTC
Close wontfix.