[ 
https://issues.apache.org/jira/browse/DERBY-5420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113541#comment-13113541
 ] 

Dag H. Wanvik commented on DERBY-5420:
--------------------------------------

Thanks, folk! I had made a patch along the lines of Bryan's suggestion more or 
less, making the format non-static and initializing the db locale in the 
contructor. Knut's idea seemed attractive, however, and I made a try. It turns 
out the MessageBuilder chokes on it when it tries to generate DITA source, not 
being prepared for anything but {<string>} parameters in message strings in 
messages.xml: it tries to put the name of the meta-variable in the string, cf 
this:

<row>
  <entry colname="col1">01006</entry>
  <entry colname="col2">Privilege not revoked from user 
<varname>&lt;authorizationID&gt;</varname>.</entry>
</row>

Obviously, trying to format a string like "<varname>&lt;number&gt;</varname>" 
with the format "{0,number,###########0.00}" doesn't work very well...

 I'll see it I can work around that somehow.

> TableLockBasicTest is locale sensitive: failed with Norwegian locale on 
> Windows.
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-5420
>                 URL: https://issues.apache.org/jira/browse/DERBY-5420
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>         Environment: Windows Vista SP2, Norwegian locale, JDK 7.
>            Reporter: Dag H. Wanvik
>            Priority: Minor
>
> The execution plans are asserted in this test and I saw this diff:
> Expected:
>         :
>       optimizer estimated row count:            6.00
>       optimizer estimated cost:          100.40<
> Found:
>         :
>         optimizer estimated row count:            6,00
>       optimizer estimated cost:          100,40<
> the latter using a decimal comma whereas a decimal point is expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to