From 4cc079377d5a59a7e27c3be95ef1250d5744c460 Mon Sep 17 00:00:00 2001 From: James David Berry <jberry@apache.org> Date: Tue, 23 May 2006 15:36:53 +0000 Subject: [PATCH] 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 --- m4/xerces_msgloader_selection.m4 | 2 +- m4/xerces_netaccessor_selection.m4 | 2 +- m4/xerces_transcoder_selection.m4 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/m4/xerces_msgloader_selection.m4 b/m4/xerces_msgloader_selection.m4 index 737b9cc5d..8c7f178a3 100644 --- a/m4/xerces_msgloader_selection.m4 +++ b/m4/xerces_msgloader_selection.m4 @@ -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 diff --git a/m4/xerces_netaccessor_selection.m4 b/m4/xerces_netaccessor_selection.m4 index 5507a0048..b305513e8 100644 --- a/m4/xerces_netaccessor_selection.m4 +++ b/m4/xerces_netaccessor_selection.m4 @@ -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 diff --git a/m4/xerces_transcoder_selection.m4 b/m4/xerces_transcoder_selection.m4 index c17c5d84a..ba5488abf 100644 --- a/m4/xerces_transcoder_selection.m4 +++ b/m4/xerces_transcoder_selection.m4 @@ -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 -- GitLab