home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7092 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  1.8 KB

  1. Xref: sparky comp.lang.perl:7092 comp.os.os2.programmer:6605
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!asuvax!chnews!hfglobe!imutm1.de.intel.com!gold.sub.org!jonas.gold.sub.org!rommel
  3. From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
  4. Newsgroups: comp.lang.perl,comp.os.os2.programmer
  5. Subject: Re: perl, OS/2, and characters above \x7f
  6. Distribution: world
  7. Message-ID: <722375983rommel.root@jonas.gold.sub.org>
  8. Sender: root@jonas.gold.sub.org
  9. Date: Sat, 21 Nov 92 20:59:43 MET
  10. References: <1992Nov21.020356.4544@netcom.com>
  11. Organization: Private
  12. Lines: 34
  13.  
  14. In article <1992Nov21.020356.4544@netcom.com> xtifr@netcom.com (Chris Waters) writes:
  15. >I'm trying to parse a file that uses \xe3 as record separators. 
  16. >However, the following doesn't work:
  17. >
  18. >$/ = "\xe3";
  19. >
  20. >while (<>) {
  21. >  chop;
  22. >  print;
  23. >  print "\n";
  24. >}
  25. >
  26. >It seems to spit the entire file back out, with the \xe3 characters
  27. >unchanged.  And I'm stumped.  I'm not sure if perl has problems with
  28. >characters > \x7f, or if it's the OS/2 port I'm using (perl4035.zip from
  29. >hobbes.nmsu.edu), or what's going on here.  But any help would be
  30. >appreciated.
  31.  
  32. It may be a problem with signed/unsigned characters. I have recorded
  33. the bug report but will probably not have time to work on it for a
  34. while. In case you really need that and don't mind the work of
  35. recompiling it (with emx 0.8e) you may want to do that with the
  36. additional option -funsigned-chars to gcc and try again. Just in case
  37. it's that simple.
  38.  
  39. Kai Uwe Rommel
  40.  
  41. --
  42. /* Kai Uwe Rommel                                      Muenchen, Germany *
  43.  * rommel@jonas.ucrc.sub.org                       Phone +49 89 723 4101 *
  44.  * rommel@informatik.tu-muenchen.de                  Fax +49 89 723 7889 */
  45.  
  46. DOS ... is still a real mode only non-reentrant interrupt
  47. handler, and always will be.                -Russell Williams
  48.