Description of problem: If parted is started in Russian locale "print" command failed and program is terminated with error "Error during translation: Неверный или неполный мультибайтный или широкий знак" Version-Release number of selected component (if applicable): parted (GNU parted) 1.9.0 How reproducible: Always Steps to Reproduce: 1. LANG=ru_RU.UTF-8 parted 2. > print 3. Actual results: Error message. Program is terminated. Expected results: List of partitions for device Additional info: Running parted with LANG=C works well. I suppose problem is related to Russian translation.
Thanks for the bug report, I can reproduce this. Can you translate the error message given when parted exits to English for me, I've no idea what it is complaining about :)
This message is defined in /usr/share/locale/ru/LC_MESSAGES/libc.mo msgid "Invalid or incomplete multibyte or wide character" msgstr "Неверный или неполный мультибайтный или широкий знак"
FYI: error was not displayed while running parted in 8bit enviroment LANG=ru_RU.UTF-8 parted /dev/sda print # error displayed LANG=ru_RU.koi8-r parted /dev/sda print # normal output displayed but garbled in UTF terminal
I found text string that caused the problem: Columns with partitions flags has "boot" flag for at least one of partitions. If I commented out translation for this string in ru.po file everything is fine. #msgid "boot" #msgstr "загрузочный" If I made this string little bit shorter everything is fine. msgid "boot" msgstr "загрузочны" I think problem is related to truncating too long stings in UTF mode for partitions flags column. As mentioned before 8bit mode do not raise this issue.
Thanks for the additional debugging, I've fixed this and send the fix upstream. You can download a fixed version parted-1.9.0-24.fc13 here: http://koji.fedoraproject.org/koji/buildinfo?buildID=147617 Note that you will also need to update your libblkid: http://koji.fedoraproject.org/koji/buildinfo?buildID=147011
Note that since I need to do an F-12 update for bug 546622 anyways I'll also include the fix for this in that F-12 update.
parted-1.9.0-17.1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/parted-1.9.0-17.1.fc12