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 1999/12/23 18:13:23 UTC

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  Changes    Path
  1.1                  apache-1.3/src/helpers/GuessCodeset
  
  Index: GuessCodeset
  ===================================================================
  #!/bin/sh
  #a       0141     97     0x61
  #s       0163    115     0x73
  #c       0143     99     0x63
  #i       0151    105     0x69
  #i       0151    105     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 <ma...@apache.org>"
  		echo >&2 "describing the platform in use. Is your AWK broken?"
  		;;
  esac