Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Confusion over utf8 and in-memory filehandles

by Anonymous Monk
on Dec 28, 2012 at 00:56 UTC ( #1010605=note: print w/replies, xml ) Need Help??

in reply to [Already reported Perl Bug] Confusion over utf8 and in-memory filehandles

What do you mean, how do they leak through?

byte is read as a9 char is read as c2a9 Strings are: equal

\xa0 is U+00A9 is ord 169, c2a9 is ord 169 utf8-encoded, after you decode it, it is chr 169

Replies are listed 'Best First'.
Re^2: Confusion over utf8 and in-memory filehandles
by ribasushi (Monk) on Dec 28, 2012 at 06:46 UTC
    It is the same string with the utf8 flag flipped up. As such I would expect the same bytes to be available when reading it as a "filehandle". Yet the utf8-ness (which is claimed to be an internal impl. detail all ovetr the docs) is "visible" in this case.

    I am not sure I understand why (nor can find any relevant perldoc)

        Indeed, so a bug. I am updating the node and poking folks at p5p.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010605]
[Your Mother]: Did I tell or show you? There is a leucistic Turkey Vulture around here all the time. I have a couple decent pictures.
[Your Mother]: Pure white (well, dirty white :P)
[erix]: as a kid I had a painted bunting -- beautiful
[Your Mother]: I would love to see one. It would be a lifer.
[Your Mother]: Wait… maybe I did see one last year…
[Your Mother]: I saw what I thought was a Cuban trogon but they are too impossibly rare / never seen in the US. That guy might have been what I actually saw.
[LanX]: Good Night guys!
[LanX]: :)
[erix]: ciao LanX
[Your Mother]: “A main wintering area is southern peninsular Florida, from the Florida Keys”

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2017-01-20 01:36 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (173 votes). Check out past polls.