Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^6: Problem with escape sequence \x for hex with spaces "\x{ 263A }" (debugger's unicode support)

by LanX (Sage)
on Jun 11, 2022 at 19:40 UTC ( #11144699=note: print w/replies, xml ) Need Help??


in reply to Re^5: Problem with escape sequence \x for hex with spaces "\x{ 263A }" (update: codepage)
in thread Problem with escape sequence \x for hex with spaces "\x{ 263A }"

> whether p or print is used.

good and weird catch.

I can reproduce that with -CO on windows

    
C:\tmp>perl -CO -de0

...

  DB<1> p "\x{263A}"
Wide character in print at (eval 15)c:/nonBKU/strawberry-perl-5.32.1.1-64bit-portable/perl/lib/perl5db.pl:738 line 2.
...

☺
  DB<2> print "\x{263A}"
☺
  DB<3> q

I know that p is a hardcoded command and the debugger is fiddling with IO to ensure that debugged program and interactions don't mess with each other.

Still surprising, hope I find time to look into this.

> I don't use the debugger

pity, it's pretty close to a REPL, and both python and ruby come with easy REPLs

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^6: Problem with escape sequence \x for hex with spaces "\x{ 263A }" (debugger's unicode support)
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-12-04 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?