home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.26 / text0005.txt < prev    next >
Encoding:
Text File  |  1992-02-21  |  1.8 KB  |  38 lines

  1. Submitted-by: gwyn@smoke.brl.mil (Doug Gwyn)
  2.  
  3. In article <1991Nov20.020954.24582@uunet.uu.net> jason@cnd.hp.com (Jason Zions) writes:
  4. >The only thing which is perhaps atrocious about "c89" is the name itself. It
  5. >had to be different from "cc"; what would you have chosen?
  6.  
  7. That's NOT a "given".  It is wrong to think that a UNIX standard would
  8. have to speciay EVERYBODY's options to a standard "cc".  Rather, all
  9. that would be needed in a software portability standard would be the
  10. stuff that virtually every UNIX implementation agrees upon:
  11.  
  12.     cc -Dmacrostufff -Iheaderdir -c -O foo.c bar.o mylib.a -lX
  13.  
  14. The requirement that this invocation (when -I etc. aren't being used)
  15. obtain a C implementation that conforms to the C standard could be left
  16. as a separate specification, not necessarily required for 1003.2 proper.
  17.  
  18. >More than that, regexp's as usually implemented were hopelessly
  19. >ethnocentric; changing languages was impossible.
  20.  
  21. No, to the contrary the existing regexp implementation was acultural;
  22. you're referring to the idea that "[a-z]" for example ought to mean
  23. "match any lowercase character in the current locale", but that is
  24. NOT what it meant.  It actually meant "match any byte having value
  25. between the values I gave you around the dash-representation" (this
  26. already was important to understand on machines that preferred
  27. EBCDIC codesets, for example).  You should keep in mind that you as
  28. a user are inputting BITS into these patterns, some bytes of which
  29. have special interpretation ([, ^, -, etc.) and others taken
  30. literally as standing for their values.  The ethocentricity was
  31. introduced by 1003.2, presumably because people thought it would be
  32. "nice" to be able to specify locale-dependent character classes; it
  33. did not inhere in the previous regexp mechanism.
  34.  
  35.  
  36. Volume-Number: Volume 26, Number 6
  37.  
  38.