Permalink
Browse files

Fix an error where =NN character sequences in patch comments were wro…

…ngly unescaped
  • Loading branch information...
1 parent 0ef52d4 commit 1c8cccb2c1ef0cc79f24870278bb75bb043182fd @purcell committed Feb 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 darcs-to-git
View
@@ -165,7 +165,7 @@ class String
# darcs uses '[_\hh_]' to quote non-ascii characters where 'h' is
# a hexadecimal. We translate this to '=hh' and use ruby's unpack
# to do replace this with the proper byte.
- gsub(/\[\_\\(..)\_\]/) { |x| "=#{$1}" }.unpack("M*")[0]
+ gsub(/\[\_\\(..)\_\]/) { |x| "=#{$1}".unpack("M*")[0] }
end
end

0 comments on commit 1c8cccb

Please sign in to comment.