To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=70236
                 Issue #|70236
                 Summary|CDbl truncates values with locale setting passed by an
                        | environment variable
               Component|Spreadsheet
                 Version|OOo 2.0.3
                Platform|PC
                     URL|
              OS/Version|Linux
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|spreadsheet
             Reported by|dindy





------- Additional comments from [EMAIL PROTECTED] Mon Oct  9 06:23:51 -0700 
2006 -------
This is the same bug reported on issue #21413, where it is asked to submit 
another issue if reproduced. 

When a locale which uses the comma as the decimal separator is passed by an 
environment variable, with a command line like:

env LANG="[EMAIL PROTECTED]" ooffice

a Basic Macro like this:

MsgBox CStr(CDbl("1234,5678"))

gives "1234" instead of "1234,5678". CDbl truncates the decimal part. 

This happens only under Linux, on Windows it works as expected. If the locale 
is set using Tools->Options->Language Settings->Languages it works also under 
Linux. The bugs happens only when the locale is set using the environment.

I tested this only with Calc and Italian locale settings, but probably it 
happens also with other components and with other locales using the comma as 
the decimal separator.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to