From 5495049e90db964459226c57a3b9fdfef0658102 Mon Sep 17 00:00:00 2001 From: imiyazaki Date: Mon, 3 Nov 2003 11:58:51 +0000 Subject: [PATCH] fix bug in &de_er(). treat $value as decimal explicitly in case of daikanwa and gt. --- Chise_utils/Chise_utils.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Chise_utils/Chise_utils.pm b/Chise_utils/Chise_utils.pm index d82f49b..257f27a 100644 --- a/Chise_utils/Chise_utils.pm +++ b/Chise_utils/Chise_utils.pm @@ -245,7 +245,9 @@ sub de_er{ $output_char=pack("U",hex($1)); }elsif($er=~/^(?:I\-)?($er_prefix_re)\-?([0-9a-fA-F]+)$/){ ($atr,$value)=($1,$2); - unless($er_alias{$atr}=~/daikanwa|gt/){ + if($er_alias{$atr}=~/daikanwa|gt/){ + $value+=0; + }else{ $value=hex($value); } ($output_char)=&get_chars_matching($er_alias{$atr},$value); -- 1.7.10.4