Bug 163594
Summary: | broken codepage recoding in editor/view with Ctrl+T | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | CTAC <ctac113> |
Component: | mc | Assignee: | Jindrich Novy <jnovy> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | CC: | andy, leonard-rh-bugzilla, pknirsch |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 4.6.1a-0.17 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-10-03 11:00:12 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Attachments: |
Description
CTAC
2005-07-19 11:12:26 UTC
Created attachment 116919 [details]
Test file with small classic poem
This is a small plain text file with russian text in KOI8-R encoding
Created attachment 116920 [details]
Picture of how it shown with wrong or right encoding
This is a snapshot of my window with mc when view this file. When I change
encoding with <Ctrl>+<T>, nothing happen
Created attachment 116922 [details]
Picture of how it SHOULD BE with wrong KOI8->CP1251 encoding
with MC from ASPLinux, I can choose encoding of a file and it changing in my
window!
Thanks for the nice bugreport. Could you please check whether you can reproduce the same thing with the latest development mc version? This version is downloadable at: http://people.redhat.com/jnovy/ If this is fixed there, I'll release a FC3 update to fix it. # rpm -Uhv http://people.redhat.com/jnovy/files/mc-4.6.1a-0.11.i386.rpm and everything is fine!!! thank you! Ok, thanks again for a very good bugreport. so, I have mc-4.6.1a-0.11 Bug with 'recoding' in viewer fixed. BUT: Today I've found the SAME problem with MC built-in text editor (mcedit) Could you please fix this too? version mc-4.6.1a-0.12, builded from src.rpm, have same bug too Created attachment 118107 [details]
Patch to fix your problem.
This patch seems to fix your case by addition of "Current charmap". Please try
to apply this patch to mc-4.6.1a-0.12 (applies smoothly) and let me know
whether it fixes the problem for you.
Thanks.
does not help at all "current codepage" and "koi8-r" both. Hello, all! Firstly, I should like to note the patch #118107 is not fixed mcedit code. It affects on viewer only. And next, I found viewer problem at mc-4.6.1-1.FC3 release. Please, Jindrich, consider the attached patch. (I think this issue comes with new code in get_byte()). Hello Andy, can you attach the patch here so that I can review it? Thanks. Created attachment 118306 [details]
Patch for fixing described issue
Andy, thanks for the patch, it's now applied. |