Passing a bug fix upstream to bsd-port

Brian Gardner brian at experts-exchange.com
Wed Mar 4 15:32:25 PST 2009


Hey Greg,
I've found what I believe to be a core bug withen the Locale generation 
in my openjdk6 patch that is also a bug in bsd-port.  The problem that 
led me to this bug was with the Currency formatting.  Even though I was 
defining my locale to be en_US, currency was being formated as USD 
instead of $.  The problem lied in jdk/make/java/java/genlocales.gmk, 
where is was using $(substr with a '\n'.  It was supposed to get 
interpreted as a newline character, but instead was getting interpreted 
as two chars, the \ followed by n.  Attached are the test case I used to 
verify the problem was fixed, and the patch to genlocales.gmk.  I would 
imagine there were other locality issues, other than my test case, that 
this will fix.

Brian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jdk__make__java__java__genlocales.gmk.patch
Url: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090304/7af7dfb9/jdk__make__java__java__genlocales.gmk.patch 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LangTest.java
Url: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090304/7af7dfb9/LangTest.java 


More information about the bsd-port-dev mailing list