You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2006/05/23 17:36:54 UTC

svn commit: r408936 - in /xerces/c/trunk/m4: xerces_msgloader_selection.m4 xerces_netaccessor_selection.m4 xerces_transcoder_selection.m4

Author: jberry
Date: Tue May 23 08:36:53 2006
New Revision: 408936

URL: http://svn.apache.org/viewvc?rev=408936&view=rev
Log:
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.


Modified:
    xerces/c/trunk/m4/xerces_msgloader_selection.m4
    xerces/c/trunk/m4/xerces_netaccessor_selection.m4
    xerces/c/trunk/m4/xerces_transcoder_selection.m4

Modified: xerces/c/trunk/m4/xerces_msgloader_selection.m4
URL: http://svn.apache.org/viewvc/xerces/c/trunk/m4/xerces_msgloader_selection.m4?rev=408936&r1=408935&r2=408936&view=diff
==============================================================================
--- xerces/c/trunk/m4/xerces_msgloader_selection.m4 (original)
+++ xerces/c/trunk/m4/xerces_msgloader_selection.m4 Tue May 23 08:36:53 2006
@@ -88,7 +88,7 @@
 	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

Modified: xerces/c/trunk/m4/xerces_netaccessor_selection.m4
URL: http://svn.apache.org/viewvc/xerces/c/trunk/m4/xerces_netaccessor_selection.m4?rev=408936&r1=408935&r2=408936&view=diff
==============================================================================
--- xerces/c/trunk/m4/xerces_netaccessor_selection.m4 (original)
+++ xerces/c/trunk/m4/xerces_netaccessor_selection.m4 Tue May 23 08:36:53 2006
@@ -116,7 +116,7 @@
 	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

Modified: xerces/c/trunk/m4/xerces_transcoder_selection.m4
URL: http://svn.apache.org/viewvc/xerces/c/trunk/m4/xerces_transcoder_selection.m4?rev=408936&r1=408935&r2=408936&view=diff
==============================================================================
--- xerces/c/trunk/m4/xerces_transcoder_selection.m4 (original)
+++ xerces/c/trunk/m4/xerces_transcoder_selection.m4 Tue May 23 08:36:53 2006
@@ -124,7 +124,7 @@
 	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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org