Skip to content

Instantly share code, notes, and snippets.

@zby
Created April 17, 2012 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zby/2404904 to your computer and use it in GitHub Desktop.
Save zby/2404904 to your computer and use it in GitHub Desktop.
OUTPUT
ok 1 - literal
not ok 2 - eval
# Failed test 'eval'
# at tmp/unicode_test.pl line 18.
Wide character in print at /usr/share/perl5/Test/Builder.pm line 1759.
# got: '�'
# expected: 'ó'
SV = PV(0x1c87dd8) at 0x1cca1b8
REFCNT = 1
FLAGS = (PADMY,POK,pPOK,UTF8)
PV = 0x1cd21c0 "\363"\0Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately after start byte 0xf3) in subroutine entry at tmp/unicode_test.pl line 19.
[UTF8 "\x{0}"]
CUR = 1
LEN = 8
1..2
# Looks like you failed 1 test of 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment