From 1edad77efcf442d87a81dcc3a163a8e04eb7e6dd Mon Sep 17 00:00:00 2001 From: mösi Date: Sat, 19 Sep 2009 17:51:34 +0000 Subject: Korrektur für leere Strings: Bislang wurde fälschlich U000000 (^@) erzeugt, jetzt wird ein Leerstring zurückgeliefert. 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(-) (limited to 'windows/neo-vars/src') 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