Package: mc
Version: 1:4.6.1-7.0.0jones1
Severity: normal
As subject says, mcedit fails to replace searches with regexes.
Attached is the fix in the related Savannah bug#19333, adjusted for the earlier
applied UTF8 patch.
Kind regards,
- Jonas
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.20-1.0.0jones1-amd64 (SMP w/2 CPU cores)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mc depends on:
ii libc6 2.5-3 GNU C Library: Shared libraries
ii libglib2.0-0 2.12.11-3 The GLib library of C routines
ii libgpmg1 1.19.6-25 General Purpose Mouse - shared lib
ii libslang2 2.0.6-4 The S-Lang programming library - r
mc recommends no packages.
-- no debconf information
diff -ruN mc-4.6.1.orig/edit/editcmd.c mc-4.6.1/edit/editcmd.c
--- mc-4.6.1.orig/edit/editcmd.c 2007-04-19 16:30:11.000000000 +0200
+++ mc-4.6.1/edit/editcmd.c 2007-04-19 16:32:12.000000000 +0200
@@ -2175,7 +2175,7 @@
#ifdef UTF8
mc_wchar_t *winput2 = mbstr_to_wchar(exp2);
#endif /* UTF8 */
- if (replace_scanf || replace_regexp) {
+ if (replace_scanf) {
mc_wchar_t repl_str[MAX_REPL_LEN + 2];
int ret = 0;