libjava: fix locale handling when sorting JNI methods
authorvapier <vapier@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 2015 18:32:41 +0000 (18:32 +0000)
committervapier <vapier@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 2015 18:32:41 +0000 (18:32 +0000)
commit3a52cf750bd9da06cffa7d642f1e74e77bfd8a8c
tree02da245dbfe8364957f88cb6c681100bc38828c7
parentb317b080a0777bb1b5861f2e27ee03b947227df9
libjava: fix locale handling when sorting JNI methods

When building under LANG=cs_CZ.UTF-8, the JNI method check fails:

/bin/bash ../../scripts/check_jni_methods.sh
Found a problem with the JNI methods declared and implemented.
(<) missing in implementation, (>) missing in header files
> Java_gnu_java_awt_peer_gtk_GtkClipboard_advertiseContent
> Java_gnu_java_awt_peer_gtk_GtkClipboard_initNativeState
... lots more ...

While the sed commands are run under LC_ALL=C, the two sort commands are
not, and they end up producing unexpected output (for the test).  Once we
run both under LC_ALL=C, the check passes.  While we're here, we can also
combine latter the `sort|uniq` into `sort -u` to match the earlier code.

URL: https://bugs.gentoo.org/563710
Reported-by: Miroslav Ć ulc <fordfrog@gentoo.org>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229388 138bc75d-0d04-0410-961f-82ee72b054a4
libjava/classpath/ChangeLog
libjava/classpath/scripts/check_jni_methods.sh.in