Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl "incompatibility" with CR when using utf-8 Files

by hardburn (Abbot)
on Apr 23, 2003 at 16:12 UTC ( [id://252615]=note: print w/replies, xml ) Need Help??


in reply to Perl "incompatibility" with CR when using utf-8 Files

I'd consider sending a bug report off to the folding.el people. With increasing use of Unicode, this is bound to a be a problem for a lot more people in the furture. Sounds like folding.el needs a little reimplementation.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

  • Comment on Re: Perl "incompatibility" with CR when using utf-8 Files

Replies are listed 'Best First'.
Re: Re: Perl "incompatibility" with CR when using utf-8 Files
by PetaMem (Priest) on Apr 23, 2003 at 16:51 UTC
    Done so. Got some newer version, but behaviour didnīt change. Quite frankly I don't think that perl is absolutedly unguilty here.

    In my opinion it should be possible to accept ANY line-delimiter out of a set. Perl accepts CR or LF or both but not a mixture of these in one single file (as long as it is UTF-8 coded). Emacs does. Perl doesnīt. Emacs does...

    You see?

    Bye
     PetaMem

      Yes, that's true. This goes into the whole "interpreted whitespace is eeeeevil" argument.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated

Re:^2 Perl "incompatibility" with CR when using utf-8 Files
by ph0enix (Friar) on Apr 23, 2003 at 16:39 UTC
    Why perl can't handle different line endings in one file?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://252615]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-07-22 04:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.