From e42bf56734a8ef1b890fb42df3dbb719456de225 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 24 Apr 2017 02:06:31 +0200 Subject: [PATCH] unicode: subtitled code point of original input Fix for diacritics with a string representation. --- Shiar_Sheet/FormatChar.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shiar_Sheet/FormatChar.pm b/Shiar_Sheet/FormatChar.pm index 9a00276..d7c59c1 100644 --- a/Shiar_Sheet/FormatChar.pm +++ b/Shiar_Sheet/FormatChar.pm @@ -173,8 +173,8 @@ sub cell { } } else { - if ($_ eq 'hex' or $cell =~ /^[^a-zA-Z]$/) { - $anno = sprintf(' %04X', 'value', ord $cell); + if ($_ eq 'hex' or $input =~ /^[^a-zA-Z]$/) { + $anno = sprintf(' %04X', 'value', ord $input); last; } } -- 2.30.0