Red Hat Bugzilla – Bug 116233
mc utf8-ization part 3.
Last modified: 2013-07-02 18:58:58 EDT
Hello, thanks for your work on utf-8 support in midnight commander.
But there is one unhandled bug.
I've mc installed from Fedora core rpm. I have filesystem with utf8
encoding. When I press Ctrl+Enter to copy file name to command line
in midnight commander, the result is ugly.
The reason is in this code in mc-4.6.0/src/widget.c (look at
text++). But it seems that handle_char works incorrect too.
/* Inserts text in input line */
stuff (WInput *in, char *text, int insert_extra_space)
handle_char (in, *text++);
handle_char (in, ' ');
update_input (in, 1);
I can send you patch, if needed. I've posted it to
fedora-devel-list, but there was no answer.
A patch would be welcome, I'm quite busy with the toolchain.
I searched the ml for your patch but couldn't find it.
Look at: http://mail.gnome.org/archives/mc-devel/2004-May/msg00001.html
You can find there extended patches from RedHat to support UTF-8 in
input widget, viewer and editor.
I've had contact with Vladimir Nadvornik about these patches and he
will be looking into them and other utf-8 issues soon. I was preparing
an email on this to the -devel list which I didn't finish due to the
bugzilla issues last weekend. Coming soon.
Shmyrev, if you could attach patches to the issues you are seeing we
could cross reference these with the patches from Vladimir.
Sorry, I am to buzy now to look at mc. But is seems that Vladimir have
done a great work.
Nickolay, could you verify that current mc has this problem fixed? If
not I can contact Vladimir about it.
I will look soon, is there a deadline for that review.
At least the preliminary results are that those patches aren't applied
Please grab the latest srpm from RawHide. It should compile on all
Fedora's without problems. Note that the UTF-8 patches against CVS are
more complete than the ones for mc-4.6.0, but they are not
I've just build mc-4.6.1-0.8
The Ctrl-Enter problem seems to be fixed, unless I still can't type
russian letters (UTF8 input is not working).
Is this on Fedora Core 1? Using an xterm or gnome-terminal? konsole?
Or even a console? Full 8 bits input set?
On FC 1 xterm is not (fully) UTF8ified.
gnome-terminal-2.6.0 and console too. It seems that it is not
dependant of terminal.
Sorry, I had 8-bit input turned off. Yes, really all works fine.
Good :) . Closing RawHide.
I see the only problem - when I stay in the directory with non-ascii
name, it is shown in the top of box with question chars.
| file here |
Also there is minor problems, like now src rpm is not compiled with
gcc 2.95, since of C-neologizms.
Wrt comment 14: Please file new issues as new bug reports. And be so
kind to file one bug per issue so we can close each report when the
one issue it describes has been fixed.
Please close this bug after you've opened a new one for this issue.
Wrt comment 15: You might want to report such issues upstream, at
email@example.com. Not much use to mention it here, especially since
afaict gcc-2.95 is not supported by Red Hat.
however, since you're compiling mc from the Red Hat distribution src
rpm, I'm interested in issues regarding even the problems you
mentioned with gcc-2.95, because it would show some incorrectnesses
not only in the upstream source code, but in the source code I add in
patches or in spec file.
Could you please file a new bug for it?