cvs commit: apache-1.3/src/helpers GuessCodeset
martin 00/01/10 02:37:18 Modified:src/helpers GuessCodeset Log: Fix obvious bugs (awk would not exit; $AWK was ignored even if set; noticed fixed by Paul Gilmartin) Submitted by: Paul Gilmartin [EMAIL PROTECTED] Revision ChangesPath 1.3 +7 -1 apache-1.3/src/helpers/GuessCodeset Index: GuessCodeset === RCS file: /export/home/cvs/apache-1.3/src/helpers/GuessCodeset,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- GuessCodeset 1999/12/26 19:30:35 1.2 +++ GuessCodeset 2000/01/10 10:37:16 1.3 @@ -1,5 +1,11 @@ #!/bin/sh -case `awk 'BEGIN {printf(%c%c%c%c%c-%c%c%c%c%c%c\n,97,115,99,105,105,133,130,131,132,137,131);}'` in +# This script tries to find out whether the native codeset of this machine +# is ASCII or EBCDIC. On EBCDIC based machines, it is used to activate +# the mod_ebcdic EBCDIC conversion module. +# +# Note: This script will break if you use an ebcdic cross-compiler! +# +case `${AWK-awk} 'BEGIN {printf(%c%c%c%c%c-%c%c%c%c%c%c\n,97,115,99,105,105,133,130,131,132,137,131);}' /dev/null` in ascii*) echo ASCII;; *ebcdic)echo EBCDIC;; *) echo 2 ERROR: Your platform codeset could not be detected correctly.
cvs commit: apache-1.3/src/helpers GuessCodeset
martin 99/12/26 11:30:35 Modified:src/helpers GuessCodeset Log: More sensible fallback default Revision ChangesPath 1.2 +1 -6 apache-1.3/src/helpers/GuessCodeset Index: GuessCodeset === RCS file: /export/home/cvs/apache-1.3/src/helpers/GuessCodeset,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- GuessCodeset 1999/12/23 17:13:19 1.1 +++ GuessCodeset 1999/12/26 19:30:35 1.2 @@ -1,14 +1,9 @@ #!/bin/sh -#a 0141 97 0x61 -#s 0163115 0x73 -#c 0143 99 0x63 -#i 0151105 0x69 -#i 0151105 0x69 case `awk 'BEGIN {printf(%c%c%c%c%c-%c%c%c%c%c%c\n,97,115,99,105,105,133,130,131,132,137,131);}'` in ascii*) echo ASCII;; *ebcdic)echo EBCDIC;; *) echo 2 ERROR: Your platform codeset could not be detected correctly. echo 2 Assuming ASCII. Please send an EMail to [EMAIL PROTECTED] echo 2 describing the platform in use. Is your AWK broken? - ;; + echo ASCII;; esac
cvs commit: apache-1.3/src/helpers GuessCodeset
martin 99/12/23 09:13:21 Added: src/helpers GuessCodeset Log: Simple EBCDIC vs. ASCII test script. I will integrate this into the Configure function after release of 1.3.10. Don't worry, nothing will change until then. Merry Christmas to everyone! Revision ChangesPath 1.1 apache-1.3/src/helpers/GuessCodeset Index: GuessCodeset === #!/bin/sh #a 0141 97 0x61 #s 0163115 0x73 #c 0143 99 0x63 #i 0151105 0x69 #i 0151105 0x69 case `awk 'BEGIN {printf(%c%c%c%c%c-%c%c%c%c%c%c\n,97,115,99,105,105,133,130,131,132,137,131);}'` in ascii*) echo ASCII;; *ebcdic)echo EBCDIC;; *) echo 2 ERROR: Your platform codeset could not be detected correctly. echo 2 Assuming ASCII. Please send an EMail to [EMAIL PROTECTED] echo 2 describing the platform in use. Is your AWK broken? ;; esac