~ubuntu-branches/ubuntu/lucid/mc/lucid

« back to all changes in this revision

Viewing changes to debian/patches/bugs/99c_fix-regex-newline-match.patch

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2008-09-16 10:38:59 UTC
  • mfrom: (3.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080916103859-2uwn8w61xk5mbxxq
Tags: 2:4.6.2~git20080311-4
Corrected fix for odt2txt issue (Closes: #492019) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- mc-4.6.2~git20080311/edit/editcmd.c.orig    2008-06-23 02:22:30.000000000 +0200
 
2
+++ mc-4.6.2~git20080311/edit/editcmd.c 2008-06-23 02:23:34.000000000 +0200
 
3
@@ -1570,7 +1570,8 @@
 
4
            g_free (old_pattern);
 
5
            old_pattern = 0;
 
6
        }
 
7
-       if (regcomp (&r, pattern, REG_EXTENDED | (icase ? REG_ICASE : 0))) {
 
8
+       if (regcomp (&r, pattern, REG_EXTENDED | (icase ? REG_ICASE : 0) |
 
9
+           REG_NEWLINE)) {
 
10
            *found_len = 0;
 
11
            return -3;
 
12
        }