From 1edad77efcf442d87a81dcc3a163a8e04eb7e6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=B6si?= Date: Sat, 19 Sep 2009 17:51:34 +0000 Subject: =?UTF-8?q?Korrektur=20f=C3=BCr=20leere=20Strings:=20Bislang=20wur?= =?UTF-8?q?de=20f=C3=A4lschlich=20U000000=20(^@)=20erzeugt,=20jetzt=20wird?= =?UTF-8?q?=20ein=20Leerstring=20zur=C3=BCckgeliefert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@2099 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- windows/neo-vars/src/source/compose-gen.ahk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/neo-vars/src/source/compose-gen.ahk b/windows/neo-vars/src/source/compose-gen.ahk index f6dae55..368ecc2 100644 --- a/windows/neo-vars/src/source/compose-gen.ahk +++ b/windows/neo-vars/src/source/compose-gen.ahk @@ -1791,6 +1791,8 @@ EncodeUniCompose(str) { SetFormat, Integer, hex result := "" loop { + if (str == "") + break char := asc(SubStr(str,1,1)) str := SubStr(str,2) if (char < 0x80) @@ -1828,8 +1830,6 @@ SetFormat, Integer, hex result .= "U" . SubStr("000000" . SubStr((((char & 0x07) << 18) + ((char2 & 0x3F) << 12) + ((char3 & 0x3F) << 6) + (char4 & 0x3F)),3),-5) } } - if (str == "") - break } SetFormat, Integer, d StringUpper,result,result -- cgit v1.2.3