]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix [[:xdigit:]] glitch on Solaris
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Jul 2019 14:48:15 +0000 (07:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Jul 2019 14:49:54 +0000 (07:49 -0700)
* admin/charsets/mapconv: Revert this [[:xdigit:]] change.
Solaris 10 ‘sed’ does not support [[:xdigit:]].

admin/charsets/mapconv

index 2696b13a52e8e0549aa9d202c57fb09b128e3624..8e19972f3dfbc5ab88b749ec107ef3fd8b0dc140 100755 (executable)
@@ -118,7 +118,7 @@ elif [ "$3" = "IANA" ] ; then
     # Source format is:
     #   0xXX   0xYYYY
     sed -n -e "${2}p" < $1 \
-       | sed -e 's/\(0x[[:xdigit:]]*\)[^0]*\(0x[[:xdigit:]]*\).*/\1 \2/' \
+       | sed -e 's/\(0x[0-9A-Fa-f]*\)[^0]*\(0x[0-9A-Fa-f]*\).*/\1 \2/' \
        | sort | ${AWKPROG}
 elif [ "$3" = "UNICODE" ] ; then
     # Source format is: