Re: [perl #34390] Data::Dumper misprints newline character

2005-07-06 Thread Dave Mitchell
On Wed, Mar 09, 2005 at 06:08:38PM -, echang @ pixar. com wrote:
> When the following is read in from a file and then printed out using 
> Data::Dumper, the y-umlaut character causes the newline character right 
> after to be printed without a leading \.
> 
> Input file:
> 
> parser: parse error near "ÿ"
> 
> So when this is dumped to a file in perl code it should be printed out as:
> 
> parser: parse error near \"ÿ\"
> 
> but instead it's printed as:
> 
> parser: parse error near \"\377"
> 
> 
> Since the " no longer has the leading slash, the quote contexts are 
> messed up in the perl output file Data::Dumper creates. Also the change 
> from y-umlaut to \377 is a problem, but not as big as the missing \ on 
> the ".

Do you have a short, self-contained script that reproduces the problem?

-- 
The Enterprise's efficient long-range scanners detect a temporal vortex
distortion in good time, allowing it to be safely avoided via a minor
course correction.
-- Things That Never Happen in "Star Trek" #21


[perl #34390] Data::Dumper misprints newline character

2005-03-09 Thread via RT
# New Ticket Created by  [EMAIL PROTECTED] 
# Please include the string:  [perl #34390]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/rt3/Ticket/Display.html?id=34390 >


Version: v5.8.3 built for x86_64-linux-thread-multi


When the following is read in from a file and then printed out using 
Data::Dumper, the y-umlaut character causes the newline character right 
after to be printed without a leading \.

Input file:

parser: parse error near "Ã"

So when this is dumped to a file in perl code it should be printed out as:

parser: parse error near \"Ã\"

but instead it's printed as:

parser: parse error near \"\377"


Since the " no longer has the leading slash, the quote contexts are 
messed up in the perl output file Data::Dumper creates. Also the change 
from y-umlaut to \377 is a problem, but not as big as the missing \ on 
the ".


Thanks!