Ticket #1408 (closed enhancement: not relevant)

Opened 2 years ago

Last modified 2 years ago

How to examine/inspect Unicode strings?

Reported by: szabgab Owned by:
Priority: minor Milestone:
Component: Debugger for Perl 5 Version: 0.86
Keywords: Cc:

Attachments

test_bin.png (147.0 KB) - added by bowtie 2 years ago.
just for fun :)

Change History

comment:1 Changed 2 years ago by bowtie

  • Version changed from 0.94 to 0.86

artical:

I have a project dealing with Unicode text manipulation. I am using Perl 5.014 and the Padre debugger v 0.86 (that's the latest Padre version for ActiveState Perl distribution).

In Padre, it's important to be able to view (examine/inspect) the program variables in the "Debugger" pane at the right hand side, especially the Unicode strings. It turns out that the debugger pane does not show the strings in their character glyphs. For scalars, it show gibberish, and for arrays, it shows them in the "\x{05FF} notation, which is cryptic and un-intuitive.

Is there a way to make Padre show the strings in the right glyphs? Going: "View -> Language" and changing the language doesn't help. It affects only the menus.
Note that in the editor, Unicode literals are shown right.

I am running Windows 7 x64.
I do have these in the program:

use utf8;
...
binmode(STDOUT, ":unix:utf8");
binmode $DB::OUT, ':unix:utf8' if $DB::OUT;

comment:2 Changed 2 years ago by bowtie

  • Priority changed from major to minor
  • Type changed from defect to enhancement

Padre 0.86 and Debug1 with Perl 5.014000 Humm!

I thought Unicode not fixed until Perl 5.014002.

I will take a look at this against Debug2 when a test sample is provided with comments.

comment:3 Changed 2 years ago by bowtie

  • Status changed from new to closed
  • Resolution set to not relevant

Ok so have you viewed the answer on
http://stackoverflow.com/questions/9440233/padre-how-to-examine-inspect-unicode-strings

and perlmonks

http://www.perlmonks.org/?node_id=644786

so the author should have used the following form

use feature 'unicode_strings';

open ( $fh, "<:encoding(UTF-8)", $file ) or die $!;

so I ask myself what has this to do with Padre, and Debug2.

nothing :)

O and as for viewing hex code (entities), you could try a hex editor like GHex.

Changed 2 years ago by bowtie

just for fun :)

Note: See TracTickets for help on using tickets.