]> git.draconx.ca Git - dxcommon.git/blobdiff - m4/linguas.m4
Avoid nonportable ${x%%y} substitutions in DX_LINGUAS.
[dxcommon.git] / m4 / linguas.m4
index c6ad9736ab5bbfbbcb62d1a5310d8170c47410ac..eb6701e2dd92c5696e3fd891b77f44af7ccce2b4 100644 (file)
@@ -32,7 +32,12 @@ if test -f "$srcdir/po/LINGUAS"; then
         # Ensure that if "la_CC"-style code is requested then so is plain "la".
         printf '%s\n' "$arg"
         case $arg in
-        *_*) printf '%s\n' "${arg%%_*}" ;;
+        *_*)
+          save_IFS=$IFS; IFS=_
+          set x $arg
+          IFS=$save_IFS
+          AS_ECHO(["${2}"])
+          ;;
         esac
       done
     } | sort -u >conftest.ena