aboutsummaryrefslogtreecommitdiffstats
path: root/main/file/fix-regexp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/file/fix-regexp.patch')
-rw-r--r--main/file/fix-regexp.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/file/fix-regexp.patch b/main/file/fix-regexp.patch
new file mode 100644
index 0000000000..5cd3a0ee40
--- /dev/null
+++ b/main/file/fix-regexp.patch
@@ -0,0 +1,18 @@
+From 2a041a52c1eda4fb466bb39539a16b45e5cf31cc Mon Sep 17 00:00:00 2001
+From: Christos Zoulas <christos@zoulas.com>
+Date: Tue, 23 Sep 2014 23:42:44 +0000
+Subject: [PATCH] PR/383: make regex use \x and not the non-ascii characters.
+
+diff --git a/magic/Magdir/windows b/magic/Magdir/windows
+index dd1e55d..320cb0b 100644
+--- a/magic/Magdir/windows
++++ b/magic/Magdir/windows
+@@ -160,7 +160,7 @@
+
+ # Windows *.INF *.INI files updated by Joerg Jenderek at Apr 2013
+ # emtpy ,comment , section , unicode line
+-0 regex/s \\`(\r\n|;|[[]|\xFF\xFE)
++0 regex/s \\`(\\r\\n|;|[[]|\\xFF\\xFE)
+ # left bracket in section line
+ >&0 search/8192 [
+ # http://en.wikipedia.org/wiki/Autorun.inf