From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050328 Firefox/1.0.2 Fedora/1.0.2-3 Description of problem: When vimtutor is started in Russian locale then strange text appears. It seems to be missconverted from 8bit encoding to UTF-8. Following command makes vimtutor sample text correcly displayed: $ iconv -f utf8 -t cp1251 /usr/share/vim/vim63/tutor/tutor.ru | iconv -f koi8r -t utf8 | less Version-Release number of selected component (if applicable): vim-6.3.046-0.30E.3 How reproducible: Always Steps to Reproduce: 1. Install RHEL3 ES 2. Update vim-enhanced to latest version 3. Run LANG=ru_RU.UTF-8 vimtutor Actual Results: Displayed text is unreadable. Expected Results: Russian text for vim tutorial Additional info: I found what vim.spec file from vim-6.3.046-0.30E.3.src.rpm contains line ---------------- iconv -f CP1251 -t UTF8 tutor.ru > conv/tutor.ru ---------------- Whis is wrong because tutor.ru contains text in KOI8R encoding, and tutor.ru.cp1251 contains text in CP1251 encoding. This line should be changed to ---------------- iconv -f KOI8R -t UTF8 tutor.ru > conv/tutor.ru ---------------- the same problem persists in RHEL4 and Fedora Core 4 (test2)
Created attachment 113295 [details] vim.spec patch for Russian vimtutor This patch corrects converting timtutor.ru frmo 8bit (koi8-r) encoding to Unicode
fixed in vim-6.3.071-2 (FC4). Patches for RHEL commited to CVS
(In reply to comment #2) > fixed in vim-6.3.071-2 (FC4). Patches for RHEL commited to CVS The same bug exists in RHEL4. I'd recommend to commit the patch into RHEL4 CVS tree too.
Patches committed to RHEL-3 and RHEL-4 CVS on Apr 18, 2005. Waiting for some kind of security issue/severe bug to justify an erratum