summaryrefslogtreecommitdiffstats
path: root/windows/neo-vars/src
diff options
context:
space:
mode:
authormösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-09-19 17:51:34 +0000
committermösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-09-19 17:51:34 +0000
commit1edad77efcf442d87a81dcc3a163a8e04eb7e6dd (patch)
treed925a50f6a22c448ca433c7480bc4a4d8a076dd9 /windows/neo-vars/src
parent116302a5bf1f41e51a127d5ceb1e06ae3011ce16 (diff)
Korrektur für leere Strings: Bislang wurde fälschlich U000000 (^@) erzeugt, jetzt wird ein Leerstring zurückgeliefert.
git-svn-id: https://svn.neo-layout.org@2099 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/neo-vars/src')
-rw-r--r--windows/neo-vars/src/source/compose-gen.ahk4
1 files 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