home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lang / awk / 31 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  41 lines

  1. Newsgroups: alt.lang.awk
  2. Path: sparky!uunet!europa.eng.gtefsd.com!darwin.sura.net!spool.mu.edu!torn!nott!bnrgate!bcars267!bcars267!emcoop
  3. From: emcoop@bnr.ca (hume smith)
  4. Subject: Re: tolower() function?
  5. In-Reply-To: tbates@austin.ibm.com's message of Wed, 27 Jan 1993 18:05:43 GMT
  6. Message-ID: <EMCOOP.93Jan28123240@bcars148.bnr.ca>
  7. Sender: news@bnr.ca (usenet)
  8. Nntp-Posting-Host: bcars148
  9. Organization: Bell-Northern Research, Ottawa, Canada
  10. References: <EMCOOP.93Jan19111755@bcars148.bnr.ca> <C184vr.p5q@austin.ibm.com>
  11.     <EMCOOP.93Jan25124421@bcars148.bnr.ca> <C1Iy9K.2r8p@austin.ibm.com>
  12. Date: Thu, 28 Jan 1993 17:32:40 GMT
  13. Lines: 26
  14.  
  15. In article <C1Iy9K.2r8p@austin.ibm.com> tbates@austin.ibm.com () writes:
  16.  
  17.    In article <EMCOOP.93Jan25124421@bcars148.bnr.ca>, emcoop@bnr.ca (hume smith) writes:
  18.    > In article <C1EzDw.FtF@austin.ibm.com> tbates@austin.ibm.com (Tom Bates) writes:
  19.    > 
  20.    >    The advantage to using [:upper:] and [:lower:] instead of [A-Z] and [a-z] is
  21.    >    locale support.  Not everyone uses ASCII and US English.
  22.    > 
  23.    > here's a shocker: not all tr's have that notation.  must be an IBMism :-)
  24.  
  25.    Here's a shocker, IBM supports it because it is part of AT LEAST the XPG4
  26.    standard. :)
  27.  
  28. here's a shoker: it's actually a good idea. :-)  ASCII and EBCDIC are, after all, not
  29. everything.
  30.  
  31. question: tr was often used to implement the usenet rot13:
  32.     tr [A-Za-z] [N-ZA-Mn-za-m]
  33. is there a way of doing that with this portable notation?  there's some way
  34. of specifying a subrange, surely.
  35.  
  36. do we need an alt.lang.tr group?  :-)
  37. --
  38. Hume Smith                                Honour sick and davey cris-cross
  39. hume.smith@acadiau.ca                     McTruloff sentimie
  40. emcoop@bnr.ca                             A parsnip inner pair threes.
  41.