summaryrefslogtreecommitdiff
path: root/lib/open.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-10 18:55:21 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-10 18:55:21 +0000
commit23bcb45a99d8c34501ff21d6933805d719b9809d (patch)
treeac1cf88733fd3952db101e5f4c4c22defb595136 /lib/open.t
parent8a36125691db1d8f79e98507373cbc6ea47271d4 (diff)
downloadperl-23bcb45a99d8c34501ff21d6933805d719b9809d.tar.gz
Bah. %X doesn't mean 0xC1, it means 0XC1. So let's %x.
p4raw-id: //depot/perl@12936
Diffstat (limited to 'lib/open.t')
-rw-r--r--lib/open.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/open.t b/lib/open.t
index 77587cb78e..397e8f8763 100644
--- a/lib/open.t
+++ b/lib/open.t
@@ -88,9 +88,9 @@ $ENV{LANG} = 'ru_RU.KOI8-R';
# the :locale will probe the locale environment variables like LANG
use open OUT => ':locale';
open(O, ">koi8");
-print O chr(0x430); # Unicode CYRILLIC SMALL LETTER A = KOI8-R 0xC1
+print O chr(0x430); # Unicode CYRILLIC SMALL LETTER A = KOI8-R 0xc1
close O;
open(I, "<koi8");
-printf "%#X\n", ord(<I>), "\n"; # this should print 0xC1
+printf "%#x\n", ord(<I>), "\n"; # this should print 0xc1
close I;
%%%