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
*** This bug has been marked as a duplicate of 17051 ***