httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@hyperreal.org
Subject cvs commit: apache-1.3/src/helpers GuessCodeset
Date Thu, 23 Dec 1999 17:13:23 GMT
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 <martin@apache.org>"
  		echo >&2 "describing the platform in use. Is your AWK broken?"
  		;;
  esac
  
  
  

Mime
View raw message