home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.perl:7092 comp.os.os2.programmer:6605
- 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
- From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
- Newsgroups: comp.lang.perl,comp.os.os2.programmer
- Subject: Re: perl, OS/2, and characters above \x7f
- Distribution: world
- Message-ID: <722375983rommel.root@jonas.gold.sub.org>
- Sender: root@jonas.gold.sub.org
- Date: Sat, 21 Nov 92 20:59:43 MET
- References: <1992Nov21.020356.4544@netcom.com>
- Organization: Private
- Lines: 34
-
- In article <1992Nov21.020356.4544@netcom.com> xtifr@netcom.com (Chris Waters) writes:
- >I'm trying to parse a file that uses \xe3 as record separators.
- >However, the following doesn't work:
- >
- >$/ = "\xe3";
- >
- >while (<>) {
- > chop;
- > print;
- > print "\n";
- >}
- >
- >It seems to spit the entire file back out, with the \xe3 characters
- >unchanged. And I'm stumped. I'm not sure if perl has problems with
- >characters > \x7f, or if it's the OS/2 port I'm using (perl4035.zip from
- >hobbes.nmsu.edu), or what's going on here. But any help would be
- >appreciated.
-
- It may be a problem with signed/unsigned characters. I have recorded
- the bug report but will probably not have time to work on it for a
- while. In case you really need that and don't mind the work of
- recompiling it (with emx 0.8e) you may want to do that with the
- additional option -funsigned-chars to gcc and try again. Just in case
- it's that simple.
-
- Kai Uwe Rommel
-
- --
- /* Kai Uwe Rommel Muenchen, Germany *
- * rommel@jonas.ucrc.sub.org Phone +49 89 723 4101 *
- * rommel@informatik.tu-muenchen.de Fax +49 89 723 7889 */
-
- DOS ... is still a real mode only non-reentrant interrupt
- handler, and always will be. -Russell Williams
-