~ubuntu-branches/ubuntu/natty/xdg-utils/natty

« back to all changes in this revision

Viewing changes to debian/patches/xdg-email-mawk-support.diff

  • Committer: Bazaar Package Importer
  • Author(s): Per Olofsson
  • Date: 2010-09-15 13:06:41 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100915130641-ebxuxg9tqf7gy2rh
Tags: 1.0.2+cvs20100307-2
Add patch xdg-email-mawk-support.diff: Fix bug in awk script
in xdg-email so that it works with mawk. Closes: #589133.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/scripts/xdg-email
 
2
+++ b/scripts/xdg-email
 
3
@@ -542,7 +542,7 @@ result=$(echo "$1" | $utf8 | awk '
 
4
             c = substr ($0, i, 1)
 
5
             if ( ord [c] > 127 ) {
 
6
                 e = e "%" sprintf("%02X", ord [c])
 
7
-            } else if ( c ~ /[@a-zA-Z0-9.-\\/]/ ) {
 
8
+            } else if ( c ~ /[@a-zA-Z0-9.-\\\/]/ ) {
 
9
                 e = e c
 
10
             } else {
 
11
                 e = e "%" sprintf("%02X", ord [c])