Ticket #3992 (new defect) — at Version 3
Incorrect display in Solaris encoding 1251
Reported by: | shurik005 | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.8.24 |
Component: | mc-core | Version: | master |
Keywords: | solaris, codepage, ansi1251 | Cc: | |
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: |
Description (last modified by andrew_b) (diff)
Solaris uses the ANSI1251 encoding name than other systems, where CP1251 is usually. As a result, Cyrillic characters are replaced with questions when using this encoding, since mc switches to 7-bit ASCII. When str_8bit_encodings are added to the list of the values "ansi-1251", "ansi1251" in the file lib/strutil/strutil.c, everything displays correctly, but in Options/Display?? Bits are also defined by the Input / display codepage 7-bit ASCII, unlike other encodings.
root@test:~# LC_MESSAGES=C mc -F Home directory: /root Profile root directory: /root [System data] Config directory: /usr/share/mc/ Data directory: /usr/share/mc/ File extension handlers: /usr/share/mc/ext.d/ VFS plugins and scripts: /usr/share/mc/ extfs.d: /usr/share/mc/extfs.d/ fish: /usr/share/mc/fish/ [User data] Config directory: /root/.config/mc/ Data directory: /root/.local/share/mc/ skins: /root/.local/share/mc/skins/ extfs.d: /root/.local/share/mc/extfs.d/ fish: /root/.local/share/mc/fish/ mcedit macros: /root/.local/share/mc/mc.macros mcedit external macros: /root/.local/share/mc/mcedit/macros.d/macro.* Cache directory: /root/.cache/mc/ root@test:~# mc --configure-options '--prefix=/usr' '--sysconfdir=/usr/share' '--libexec=/usr/share' 'CFLAGS=-m32' 'LDFLAGS=-m32' 'CPPFLAGS=-m32'
Change History
comment:2 in reply to: ↑ 1 Changed 5 years ago by shurik005
- Summary changed from Некоррекное отображение в Solaris кодировки 1251 to Incorrect display in Solaris encoding 1251
Replying to andrew_b:
Please translate to English.
Solaris uses the ANSI1251 encoding name than other systems, where CP1251 is usually. As a result, Cyrillic characters are replaced with questions when using this encoding, since mc switches to 7-bit ASCII. When str_8bit_encodings are added to the list of the values "ansi-1251", "ansi1251" in the file lib/strutil/strutil.c, everything displays correctly, but in Options/Display? Bits are also defined by the Input / display codepage 7-bit ASCII, unlike other encodings.
Please translate to English.