we´re encountering increasing problems with our Perl sources. They´re edited using Emacs, and especially within emacs the modes cperl and folding.el.
The trick folding.el does to remember the state of a folded block (folded or not) is to simply replace LF with CR. Well ... so far so good - as long as the perl source is not UTF-8 encoded. If it is, the Perl interpreter/tokenizer(?) just skips folded blocks and you end up with lots of missing code.
Our current only workaround for this is not to use folding in UTF-8 Perl soucecode. But this increasingly is a pain in the ... brain.
Is there some runtime/switch/whatever option to tell perl what "line-delimiters" it should accept? Considering Damians SelfGOL, where LF is a subroutine name... should this be a easy one. :-)
Bye
PetaMem
In reply to Perl "incompatibility" with CR when using utf-8 Files by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |