LINUX.ORG.RU

Нужно в Линуксе установить кодировку UCS-4 (ISO10646)


0

0

Нужно в Линуксе установить кодировку UCS-4 (ISO10646) т.е 4 байта на символ

должно выводиться в консоле wcout<<L"я супер !"<<endl

в настоящее время стоит UTF-8 ,но нужно именно USC-4

пытаюсь скомпилить

localedef --force -c -i ru_RU -f /usr/share/i18n/charmaps/ISO_10646 /usr/lib/locale/ru_RU.ISO_10646

дает ошибки !

Че делать ?

/usr/share/i18n/locales/ru_RU:73: LC_MESSAGES: unknown character in field `noexpr' /usr/share/i18n/locales/ru_RU:78: LC_MONETARY: unknown character in field `currency_symbol' /usr/share/i18n/locales/ru_RU:101: LC_TIME: unknown character in field `day' /usr/share/i18n/locales/ru_RU:102: LC_TIME: unknown character in field `day' /usr/share/i18n/locales/ru_RU:103: LC_TIME: unknown character in field `day' /usr/share/i18n/locales/ru_RU:104: LC_TIME: unknown character in field `day' /usr/share/i18n/locales/ru_RU:105: LC_TIME: unknown character in field `day' /usr/share/i18n/locales/ru_RU:106: LC_TIME: unknown character in field `day' /usr/share/i18n/locales/ru_RU:107: LC_TIME: unknown character in field `day' /usr/share/i18n/locales/ru_RU:108: LC_TIME: unknown character in field `abday' /usr/share/i18n/locales/ru_RU:109: LC_TIME: unknown character in field `abday' /usr/share/i18n/locales/ru_RU:110: LC_TIME: unknown character in field `abday' /usr/share/i18n/locales/ru_RU:111: LC_TIME: unknown character in field `abday' /usr/share/i18n/locales/ru_RU:112: LC_TIME: unknown character in field `abday' /usr/share/i18n/locales/ru_RU:113: LC_TIME: unknown character in field `abday' /usr/share/i18n/locales/ru_RU:114: LC_TIME: unknown character in field `abday' /usr/share/i18n/locales/ru_RU:115: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:116: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:117: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:118: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:119: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:120: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:121: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:122: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:123: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:124: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:125: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:126: LC_TIME: unknown character in field `mon' /usr/share/i18n/locales/ru_RU:127: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:128: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:129: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:130: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:131: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:132: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:133: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:134: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:135: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:136: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:137: LC_TIME: unknown character in field `abmon' /usr/share/i18n/locales/ru_RU:138: LC_TIME: unknown character in field `abmon' LC_MESSAGES: value for field `noexpr' must not be an empty string


найди корректную строку компиляции в гугле и будеш иметь счастье

cvv ★★★★★
()

Я думаю, что это невозможно. А wcout - вполне может перекодировать UCS4 в UTF-8 при выводе.

smartly ★★★
()

Это абсолютно невозможно, забудь. Строки заканчиваются нулевым байтом, и неважно в какой позиции он стоит. Чтобы это изменить, придётся создать новую операционную систему :)

Teak ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.