Re: mc vs mrxvt, UTF8
"Yury V. Zaytsev via mc" <[email protected]> Sat, 2 Nov 2024 18:06:29 +0100
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <[email protected]> |
> On 2. Nov 2024, at 17:41, wwp via mc <[email protected]> wrote: > > I'm trying to get mc with UTF-8 support to run in mrxvt, which has no > support for it. Of course I know I can switch to another terminal.. but > none bring what mrxvt does and the UTF-8 branch of mrxvt is not usable, > thus asking here if that sounds possible or not. mc supports UTF-8 in terms of a) printing UTF-8 characters and b) converting UTF-8 characters to the terminal encoding, if it’s different from UTF-8 as long as you build with --enable-charset. > Any tips here? The only thing I get if I run mc with LANG/LC_ALL set to > en_US.UTF-8 from a mrxvt instance is a broken layout (frames) and UTF-8 > chars not shown correctly. Tried with slang or ncurses for screen > support, no change. This is working exactly as expected. You lie to mc that your terminal supports UTF-8, it starts printing UTF-8 characters and this results in a broken layout. You should tell mc which encoding is really supported by your terminal, and it will convert everything it can to this encoding, e.g. LANG=C LC_ALL=en_US.ISO8859-1 mc Maybe you should have started by explaining what is not working and what you are trying to achieve in the first place. -- mc mailing list [email protected] https://lists.midnight-commander.org/mailman/listinfo/mc