You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@hyperreal.org on 2000/01/10 11:37:21 UTC

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 <pg...@sweng.stortek.com>
  
  Revision  Changes    Path
  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."