Skip to content
Snippets Groups Projects
Commit 4cc07937 authored by James David Berry's avatar James David Berry
Browse files

Resolve XERCESC-1595.

 - Adds compatibility with non-POSIX old System-V tr implementations
   by using [] to delimite character ranges. This works since in the
   case of translation, the [ and ] characters are simply translated
   to themselves by the POSIX tr.
   
Thanks to Scott Cantor for the report.



git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@408936 13f79535-47bb-0310-9956-ffa450edef68
parent b1627246
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ AC_DEFUN([XERCES_MSGLOADER_SELECTION],
AC_MSG_CHECKING([for which MsgLoader to use (choices:$ml_list)])
for i in 1 2; do
# Swap upper/lower case in the ml_list
ml_list=`echo $ml_list | tr 'A-Za-z' 'a-zA-Z'`
ml_list=`echo $ml_list | tr '[a-z][A-Z]' '[A-Z][a-z]'`
# Check for each msgloader, in implicit rank order
case $ml_list in
......
......@@ -116,7 +116,7 @@ AC_DEFUN([XERCES_NETACCESSOR_SELECTION],
AC_MSG_CHECKING([for which NetAccessor to use (choices:$na_list)])
for i in 1 2; do
# Swap upper/lower case in string:
na_list=`echo $na_list | tr 'A-Za-z' 'a-zA-Z'`
na_list=`echo $na_list | tr '[a-z][A-Z]' '[A-Z][a-z]'`
# Check for each netaccessor, in implicit rank order
case $na_list in
......
......@@ -124,7 +124,7 @@ AC_DEFUN([XERCES_TRANSCODER_SELECTION],
AC_MSG_CHECKING([for which Transcoder to use (choices:$tc_list)])
for i in 1 2; do
# Swap upper/lower case in the tc_list
tc_list=`echo $tc_list | tr 'A-Za-z' 'a-zA-Z'`
tc_list=`echo $tc_list | tr '[a-z][A-Z]' '[A-Z][a-z]'`
# Check for each transcoder, in implicit rank order
case $tc_list in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment