2010-09-15 12:20, Per Olofsson skrev:
> 2010-09-15 11:29, Sreepathi Pai skrev:
>> The error reported by Ansgar Burchardt happens in the url_encode
>> function of xdg-email, and is caused by the default awk being mawk
>> instead of gawk. Here's what I get when I run exactly the same
>> function standalone with mawk:
>>
>> mawk: line 15: regular expression compile failed (bad class -- [], [^] or [)
>> [...@a-za-z0-9.-\\
>> mawk: line 15: syntax error at or near ]
>> mawk: line 17: syntax error at or near else
>> mawk: line 20: syntax error at or near }
>>
>> It runs fine with gawk.
>>
> 
> OK. But mawk is required while gawk is optional. So I guess we should
> make the script work in both mawk and gawk.
> 
> If it's difficult, a quick fix would be to call gawk explicitly and
> depend on it.
> 
> I'll look into it.
> 

Turns out the fix was really simple:

--- a/scripts/xdg-email
+++ b/scripts/xdg-email
@@ -542,7 +542,7 @@ result=$(echo "$1" | $utf8 | awk '
             c = substr ($0, i, 1)
             if ( ord [c] > 127 ) {
                 e = e "%" sprintf("%02X", ord [c])
-            } else if ( c ~ /[...@a-za-z0-9.-\\/]/ ) {
+            } else if ( c ~ /[...@a-za-z0-9.-\\\/]/ ) {
                 e = e c
             } else {
                 e = e "%" sprintf("%02X", ord [c])


I'll have to test if it works in KDE now.

-- 
Pelle



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to