Davide Dozza wrote:
Bernard Marcelly wrote:

Le 2005-03-03 20:04, Alexej Kryukov a écrit :

On Thursday 03 March 2005 20:40, Sevastian `seva` Foglia wrote:

Sub Main
    Dim sVal as String
    sVal = "0,30"
    print CDbl(sVal)
End Sub



I correctly display 0,3 on my OOo 1.1.3 french, Windows XP french


On my iBook with NeoOffice 1.1 I get 0,3 On a PC with Window XP professional and OOo 1.1.3 I get 0,3


[...]


I have created an issue devoted to this problem long time ago, see http://www.openoffice.org/issues/show_bug.cgi?id=21413


This IZ says it is Linux specific. From what Sevastian sees it exists also on Mac/OsX NeoOffice. No problem with good old Windows.


It's what Sevastian said......

CDbl() works well both on Win and NeoOffice but not on Linux.

Definitely, it's a Linux issue.

Davide

I found where problem is: environment variable LANG on linux. If LANG is [EMAIL PROTECTED] this macro Sub Main Dim sVal as String sVal = "0,30" print CDbl(sVal) End Sub return 0 If LANG is not set macro return correct value 0,3

Note: In OOo option Locale is set to Italian (Italy)

Bye Seva

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to