aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2011-11-07 23:13:17 +0200
committerAlexander Yakushev <yakushev.alex@gmail.com>2011-11-07 23:13:17 +0200
commit82df5523c1d148aaf90aaad13fa451f22491cf27 (patch)
treebb0c029c7b3f2f2a3fc22ac040420db93ced5edc
parent920d676190310540af123862622993fbed0f5ba4 (diff)
downloadawesompd-82df5523c1d148aaf90aaad13fa451f22491cf27.tar.gz
awesompd-82df5523c1d148aaf90aaad13fa451f22491cf27.tar.bz2
Reverted to 4-digits UTF symbols from Jamendo
Still no idea how to tell apart symbol (\uXXXX)foo from (\uXXXXf)oo where parentheses mark an UTF symbol.
-rw-r--r--jamendo.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/jamendo.lua b/jamendo.lua
index 23aae2c..a6989c6 100644
--- a/jamendo.lua
+++ b/jamendo.lua
@@ -300,8 +300,8 @@ end
-- them into symbols so we need to do it ourselves.
function utf8_codes_to_symbols (s)
local hexnums = "[%dabcdefABCDEF]"
- local pattern = string.format("\\u(%s%s%s%s?%s?)",
- hexnums, hexnums, hexnums, hexnums, hexnums)
+ local pattern = string.format("\\u(%s%s%s%s?)",
+ hexnums, hexnums, hexnums, hexnums)
local decode = function(code)
code = tonumber(code, 16)
if code < 128 then -- one-byte symbol