aboutsummaryrefslogtreecommitdiffstats
path: root/main/file/fix-regexp.patch
blob: 5cd3a0ee40c8363dee60e5312c19041ca06f7c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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