diff options
author | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-09-19 17:51:34 +0000 |
---|---|---|
committer | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-09-19 17:51:34 +0000 |
commit | 1edad77efcf442d87a81dcc3a163a8e04eb7e6dd (patch) | |
tree | d925a50f6a22c448ca433c7480bc4a4d8a076dd9 /windows/neo-vars | |
parent | 116302a5bf1f41e51a127d5ceb1e06ae3011ce16 (diff) | |
download | neo-layout-1edad77efcf442d87a81dcc3a163a8e04eb7e6dd.tar.gz neo-layout-1edad77efcf442d87a81dcc3a163a8e04eb7e6dd.tar.bz2 neo-layout-1edad77efcf442d87a81dcc3a163a8e04eb7e6dd.zip |
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')
-rw-r--r-- | windows/neo-vars/src/source/compose-gen.ahk | 4 |
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
|