From baf at asu.tusur.ru Thu Apr 1 05:27:34 2004 From: baf at asu.tusur.ru (Aleksandr Bangard) Date: Thu, 1 Apr 2004 12:27:34 +0700 Subject: Patch for recode file names in panel Message-ID: <20040401122734.6a057396.baf@asu.tusur.ru> Hello All! I want to offer include patch, which allow users in panel choose code page for display file names. This patch was tested by me under FreeBSD(4.9 and 5.2) and mc-4.6.0. After applying this patch users can choose preffered code page for FTP, SMB or file panel(CTRL+t). Also this patch add 2 feature: add handler for extension .xnet and .xsmb. For use this feature, need create file(for example MY_NET.xsmb) with this content: RANGE=192.168.62.97-110 USER=GUEST and when you press enter on this file, in file panel you can see available machines(this feature required installed program nbtscan). For second feature need create file MY_NET.xnet with content: ftp: unix2 unix2.asu.tusur.ru smb: BIV 192.168.62.110 In this file type support extensions smb, ftp and sh. You can download patch http://www.baf.ru/files/unix/freebsd/misc/mc/mc-4.6.0-recode.patch.310304 In this patch i do some modifications(i have changed key combination from Alt+x to CTRL+t, because some windows SSH clients catch it as close SSH session). If you want to see original patch, it can be fount there http://ccphys.nsu.ru/~avpak/mc/mc-4.6.0-recode.patch.022603.gz I'm not author of original patch, i just change key combination. Thanks for your attention, With best regards, Alex. From leonard at den.ottolander.nl Thu Apr 1 13:00:06 2004 From: leonard at den.ottolander.nl (Leonard den Ottolander) Date: Thu, 01 Apr 2004 15:00:06 +0200 Subject: Savannah tracker still in use? Message-ID: <1080824406.4753.17.camel@athlon.localdomain> Hi, I was wondering where to submit bugs and patches. I got the impression the Savannah tracker is not really used to track bugs anymore. Where should I go instead? Leonard. -- mount -t life -o ro /dev/dna /genetic/research From proski at gnu.org Fri Apr 2 07:48:59 2004 From: proski at gnu.org (Pavel Roskin) Date: Fri, 02 Apr 2004 02:48:59 -0500 (EST) Subject: Savannah tracker still in use? In-Reply-To: <1080824406.4753.17.camel@athlon.localdomain> References: <1080824406.4753.17.camel@athlon.localdomain> Message-ID: On Thu, 1 Apr 2004, Leonard den Ottolander wrote: > I was wondering where to submit bugs and patches. I got the impression > the Savannah tracker is not really used to track bugs anymore. Where > should I go instead? Savannah is very slow today. Perhaps they have some difficulties. But please be patient and use Savannah. It's more reliable than the mailing list. The project is underpowered now, but if things go better, it will be easier to find patches in Savannah than to scan mailing lists. Unfortunately, it's not likely that any patches on Savannah will be applied before version 4.6.1. The new version is long overdue. Most distribution have already released patches for the VFS problem. If you have something trivial that would not take much time to review, then please post to the list. If it's not applied, use Savannah. Please post patches only from a subscribed address. This mailing list in under virus attack, and the moderation queue has more than 1000 messages, mostly spam and viruses. GNOME postmaster promised me that the situation will improve after the GNOME 2.6 release. But as it stands now, messages from non-subscribers are waiting in the same queue, and there is no easy way to sort them. -- Regards, Pavel Roskin From leonard at den.ottolander.nl Fri Apr 2 14:35:08 2004 From: leonard at den.ottolander.nl (Leonard den Ottolander) Date: Fri, 02 Apr 2004 16:35:08 +0200 Subject: Savannah tracker still in use? In-Reply-To: References: <1080824406.4753.17.camel@athlon.localdomain> Message-ID: <1080916507.4753.32.camel@athlon.localdomain> Hello Pavel, > Savannah is very slow today. Perhaps they have some difficulties. But > please be patient and use Savannah. It's more reliable than the mailing > list. The project is underpowered now, but if things go better, it will > be easier to find patches in Savannah than to scan mailing lists. I was not speaking of today, but wondering in general if Savannah was still the place to go for bugs and patches. As I understand your answer is yes. I must have been misinformed. > If you have something trivial that would not take much time to review, > then please post to the list. If it's not applied, use Savannah. There's the large syntax patch (https://savannah.gnu.org/patch/?func=detailitem&item_id=1628). The original submitted patch didn't work (some problems with pointers or range checks IIRC), but was fixed by Jakub Jelinek from Red Hat and is now part of RHs mc. See also http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112644 . In relation to this, I also submitted a more complete php syntax file (https://savannah.gnu.org/patch/?func=detailitem&item_id=2422 & http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112645), which is now also part of RHs mc. Attached to both bug reports you can find a script that generates a list of php functions from the docs at http://www.php.net, on which this syntax file is based. Since these two patches have a had a few months of testing by Fedora users I would think they are safe to be merged with CVS. If you do accept them you can also close https://savannah.gnu.org/bugs/?func=detailitem&item_id=6978 . As I was not used to the concept of separate submission of bugs and patches I submitted the syntax file as a bug before submitting it as a patch. In this case also https://savannah.gnu.org/bugs/?func=detailitem&item_id=3829 can be closed. Another issue is https://savannah.gnu.org/bugs/?func=detailitem&item_id=4271 . That's an easy fix. Leonard. -- mount -t life -o ro /dev/dna /genetic/research From rodrigo at deec.ufpa.br Sun Apr 11 18:03:12 2004 From: rodrigo at deec.ufpa.br (Rodrigo) Date: Sun, 11 Apr 2004 15:03:12 -0300 Subject: Suggestion: Program comment Lines Message-ID: <7f347f766f101d42ba04a2f1315349ea@200.242.195.231> Hi. I use mc version 4.6.0 and I'd like to suggest including a tool for automatically commenting blocks of the software under edition, by selecting it and pressing some hotkey combination. Uncommenting is also interesting. This is particularly useful for languages such as fortran, in which each commented line has to begin with a 'C'. So, (un)commenting a block of a fortran code manually is terrible and this tool would save a LOT of time. Thanks very much and I hope the suggestion is useful. Regards, -- ------------------ [Rodrigo Oliveira] ________________________________________________ Message sent using UebiMiau 2.7.8 From proski at gnu.org Tue Apr 13 16:17:19 2004 From: proski at gnu.org (Pavel Roskin) Date: Tue, 13 Apr 2004 12:17:19 -0400 (EDT) Subject: Suggestion: Program comment Lines In-Reply-To: <7f347f766f101d42ba04a2f1315349ea@200.242.195.231> References: <7f347f766f101d42ba04a2f1315349ea@200.242.195.231> Message-ID: On Sun, 11 Apr 2004, Rodrigo wrote: > I use mc version 4.6.0 and I'd like to suggest including a tool for > automatically commenting blocks of the software under edition, by > selecting it and pressing some hotkey combination. Uncommenting is also > interesting. > > This is particularly useful for languages such as fortran, in which each > commented line has to begin with a 'C'. So, (un)commenting a block of a > fortran code manually is terrible and this tool would save a LOT of > time. > > Thanks very much and I hope the suggestion is useful. sorry to disappoint you, but the suggestion is not very useful without a good implementation. As it stands now, there are many suggestions that nobody implemented, there are many patches of low quality that cannot be applied as is, and those who can apply patches have too little time. The primary focus of development remains fixing the existing bugs rather than adding new features. -- Regards, Pavel Roskin From kirovsky at uszn.omsknet.ru Wed Apr 14 06:57:29 2004 From: kirovsky at uszn.omsknet.ru (kirovsky) Date: Wed, 14 Apr 2004 10:57:29 +0400 Subject: My mc-4.6.0 not work. Message-ID: <168896847.20040414105729@uszn.omsknet.ru> Hello mc-devel, I'm compile your's mc-4.6.0 under RH 7.3 - standart set. Compilation ran OK. But I type "mc", and mc not work. It print me short help and it print: -P: argument not exist. Mc's seem I type "mc -P". Why? Under Slackware all OK. -- Best regards, Konstantin, Russia mailto:kirovsky at uszn.omsknet.ru From subscript at free.fr Wed Apr 14 13:52:44 2004 From: subscript at free.fr (wwp) Date: Wed, 14 Apr 2004 15:52:44 +0200 Subject: My mc-4.6.0 not work. In-Reply-To: <168896847.20040414105729@uszn.omsknet.ru> References: <168896847.20040414105729@uszn.omsknet.ru> Message-ID: <20040414155244.052a7902@localhost> Hello kirovsky, On Wed, 14 Apr 2004 10:57:29 +0400 kirovsky wrote: > I'm compile your's mc-4.6.0 under RH 7.3 - standart set. > Compilation ran OK. But I type "mc", and mc not work. It print me > short help and it print: -P: argument not exist. > Mc's seem I type "mc -P". Why? > Under Slackware all OK. Dunno if it helps, but SuSE sets a mc function in each user's environment variable. When you call mc, this function call is prior to the mc binary. Maybe that's the same for you? You could try: `set | grep mc` and see if smth is defined. Or maybe a bash alias? Regards, -- wwp From mr700 at globalnet.bg Thu Apr 15 07:20:41 2004 From: mr700 at globalnet.bg (Doncho N. Gunchev) Date: Thu, 15 Apr 2004 10:20:41 +0300 Subject: My mc-4.6.0 not work. (Rereply, sorry) In-Reply-To: <168896847.20040414105729@uszn.omsknet.ru> References: <168896847.20040414105729@uszn.omsknet.ru> Message-ID: <200404151020.41059@-mr700> I apologize I replyed directly to Konstantin, I just used reply which in other mail lists does reply to the list, not to the sender. On Wednesday 14 April 2004 09:57, kirovsky wrote: > Hello mc-devel, > > I'm compile your's mc-4.6.0 under RH 7.3 - standart set. > Compilation ran OK. But I type "mc", and mc not work. It print me > short help and it print: -P: argument not exist. > Mc's seem I type "mc -P". Why? > Under Slackware all OK. > Redhat ship mc with 2 scripts that make mc an alias. The purpose of these two is to cd to the directory you exited from mc. I think in mc's sources there was an replacement for these two (the -P option changed). I've also received reply from him: | Thank for your aswer! I'm change script mc.sh in /etc/profile.d from: | mc () | { | mkdir -p $HOME/.mc/tmp 2> /dev/null | chmod 700 $HOME/.mc/tmp | MC=$HOME/.mc/tmp/mc-$$ | /usr/bin/mc -P "$@" > "$MC" | cd "`cat $MC`" | /bin/rm -f "$MC" | unset MC; | } | | to: | mc () | { | mkdir -p $HOME/.mc/tmp 2> /dev/null | chmod 700 $HOME/.mc/tmp | MC=$HOME/.mc/tmp/mc-$$ | /usr/bin/mc | /bin/rm -f "$MC" | unset MC; | } | | May be this is not optimal, but it work! btw: new redhats (RH9/FC1) are using: --- /etc/profile.d --- alias mc='. /usr/share/mc/bin/mc-wrapper.sh' --- eof --- and --- /usr/share/mc/bin/mc-wrapper.sh --- MC_PWD_FILE="${TMPDIR-/tmp}/mc-$USER/mc.pwd.$$" /usr/bin/mc -P "$MC_PWD_FILE" "$@" if test -r "$MC_PWD_FILE"; then MC_PWD="`cat $MC_PWD_FILE`" if test -n "$MC_PWD" && test -d "$MC_PWD"; then cd "$MC_PWD" fi unset MC_PWD fi /bin/rm -f "$MC_PWD_FILE" unset MC_PWD_FILE --- eof --- I'll look how I do reply in future, sorry. -- Regards, Doncho N. Gunchev Registered Linux User #291323 at counter.li.org GPG-Key-ID: 1024D/DA454F79 Key fingerprint = 684F 688B C508 C609 0371 5E0F A089 CB15 DA45 4F79 From subscript at free.fr Thu Apr 15 11:44:11 2004 From: subscript at free.fr (wwp) Date: Thu, 15 Apr 2004 13:44:11 +0200 Subject: untaring filename containing '#' issue Message-ID: <20040415134411.6c3fbb3e@tethys.solarsys.org> Hi there, using mc 4.6.0-pre1, I've found that trying to extract files that contain at least one # in their filenames from tarballs will fail (I suppose that a shell script is tricked by this comment char, not protecting a filename w/ quotes?). Regards, -- wwp From andrej at rep.kiev.ua Sat Apr 17 19:24:51 2004 From: andrej at rep.kiev.ua (Andriy Gritsenko) Date: Sat, 17 Apr 2004 22:24:51 +0300 Subject: Three bugs in mc-4.6.1-pre1 Message-ID: <20040417192451.GA28644@rep.rep.kiev.ua> Hi, people! I've recently found three bugs with upstream version of Midnight Commander. I've fixed these already and pathces are in attachments. Some words about these: 1. I used to view content of /dev/cdrom without additional tools but right via F3 key. It's not a problem with a block devices. I appreciate that you denied viewing of devices but block devices must be excluded as they may be viewed. :) 2. With locale "ua" on some dialogs I cannot press meta-p to get previous value from field history. It's very bad when you're not in X nor local console and cannot use mouse and have to type what you need each time. 3. When you try open archives that have names that prepended with "./" then you cannot see any files in root directory of archive. It's started in recent versions of mc, 4.5.55 has not that bug. All these bugs are fixed, please, fix upstream too. :) With best wishes. Andriy. -------------- next part -------------- --- mc-4.6.1-pre1.orig/src/view.c Wed Dec 24 09:44:08 2003 +++ mc-4.6.1-pre1/src/view.c Sat Apr 3 22:45:55 2004 @@ -630,7 +630,7 @@ do_view_init (WView *view, const char *_ goto finish; } - if (!S_ISREG (view->s.st_mode)) { + if (!S_ISREG (view->s.st_mode) && !S_ISBLK (view->s.st_mode)) { mc_close (fd); g_snprintf (tmp, sizeof (tmp), _(" Cannot view: not a regular file ")); -------------- next part -------------- diff -udpr mc-4.6.1-pre1.orig/po/uk.po mc-4.6.1-pre1/po/uk.po --- mc-4.6.1-pre1.orig/po/uk.po Wed Dec 24 19:16:26 2003 +++ mc-4.6.1-pre1/po/uk.po Sat Apr 17 17:17:14 2004 @@ -236,11 +236,11 @@ msgstr "???????? ??&o ??????" #: edit/editcmd.c:1236 edit/editcmd.c:1314 src/view.c:2110 msgid "&Backwards" -msgstr "&?????" +msgstr "&H????" #: edit/editcmd.c:1238 edit/editcmd.c:1316 msgid "&Regular expression" -msgstr "&P????????? ?????" +msgstr "?&e???????? ?????" #: edit/editcmd.c:1240 edit/editcmd.c:1318 msgid "&Whole words only" @@ -2094,7 +2094,7 @@ msgstr " ??????? ??????: ???? ????? " #: src/filegui.c:728 msgid "preserve &Attributes" -msgstr "???&p????? ????????" +msgstr "????????? ?????&y??" #: src/filegui.c:730 msgid "follow &Links" -------------- next part -------------- diff -udpr mc-4.6.1-pre1.orig/vfs/tar.c mc-4.6.1-pre1/vfs/tar.c --- mc-4.6.1-pre1.orig/vfs/tar.c Wed Nov 26 23:10:44 2003 +++ mc-4.6.1-pre1/vfs/tar.c Sat Apr 17 21:42:27 2004 @@ -455,13 +455,11 @@ tar_read_header (struct vfs_class *me, s current_file_name = (next_long_name ? next_long_name : g_strdup (header->header.arch_name)); + canonicalize_pathname (current_file_name); len = strlen (current_file_name); - if (current_file_name[len - 1] == '/') { - current_file_name[len - 1] = 0; - } data_position = current_tar_position; - + p = strrchr (current_file_name, '/'); if (p == NULL) { p = current_file_name; From kghuang at sbcglobal.net Mon Apr 19 19:14:49 2004 From: kghuang at sbcglobal.net (kg huang) Date: Mon, 19 Apr 2004 12:14:49 -0700 (PDT) Subject: Native Win32 Port Message-ID: <20040419191449.88625.qmail@web80710.mail.yahoo.com> Greetings, First, thank you all MC developers for the great software. I have used MC on Linux for some times. Then I found that it could also run on windows platform through cygwin emulation. It runs great, too, on cygwin. Just the keyboard response is slow on my system and don't know why. So I tried the native win32 port of MC (mc-4.5.4, the latest non-glib version), it does not have this keyboard slowness issue. And my problems with emacs keys in cygwin box have not been seen in command prompt box. I recently took the latest snap shot mc-2004-03-05-08 and managed to build it for windows in native mode. The modifications are mostly on pc directory (and only very few line additions to src directory). It runs the basic functions ok on windows xp. It would be good if some helpers out there can make it run better without going through duplicate efforts. A single source people can go to might help. I am just wondering if it is the interest of MC community to make native win32 build available? Thanks:) Sincerely, kg From klaus.stehle at uni-tuebingen.de Wed Apr 28 06:43:50 2004 From: klaus.stehle at uni-tuebingen.de (Klaus Stehle) Date: Wed, 28 Apr 2004 08:43:50 +0200 (CEST) Subject: cygwin patch for mc Message-ID: Hallo Midnight Commanders, The following little patch will make happy all cygwin users. Cygwin can have paths that begin with two "/"s --- these are net directories. They look like this: //computername/sharename/blablabla... The two slashes at the beginning mustn't be converted to one single slash! The patch was tested with mc-4.6.0 (cygwin's mc-4.6.0-4). Cheers Klaus Stehle Here is the patch: --- src/utilunix.c.orig 2002-12-26 15:47:46.000000000 +0100 +++ src/utilunix.c 2004-04-14 19:07:59.160044800 +0100 @@ -627,6 +627,11 @@ if (!path[start]) break; +#ifdef __CYGWIN__ + /* cygwin's net directories begin with "//" */ + if (start == 0 && i == 1) continue; +#endif + #if defined(__QNX__) && !defined(__QNXNTO__) /* ** QNX accesses the directories of nodes on its peer-to-peer