Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28248 - java-config uses locale-unfriendly regexp for extracting optargs
Summary: java-config uses locale-unfriendly regexp for extracting optargs
Status: RESOLVED DUPLICATE of bug 17051
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-09 02:55 UTC by Matti Jagula
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Jagula 2003-09-09 02:55:33 UTC
java-config fails when using a locale in which the regexp [a-zA-Z] does not
match all characters. For example, in Estonian locale, the 'z' character is in
the middle of the alphabet, between 's' and 't'. 

So, when java-config tries to extract the 'optarg' part of the command, for
example when executing 'java-config --classpath=ant', then the 'ant' part is not
extracted correctly (it results in 'classpatant', as the character 't' is right
after 'z' and is therefore not matched).

A possible workaround would be either to stop using sed and use the 'cut'
command (as in echo $1 | cut -d= -f 2) or use a better regexp (/[^=]*=/ would do).

Steps to reproduce the bug:

1. make sure that the sed is emerged with nls USE flag set
2a. execute LANG=et_EE java-config --classpath=ant
2b. or: LANG=et_EE ant
Comment 1 SpanKY gentoo-dev 2003-09-09 08:10:12 UTC

*** This bug has been marked as a duplicate of 17051 ***