mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
fix: broken output in 8-bit locale
This commit is contained in:
parent
b87edfdc26
commit
9c713d2128
@ -348,7 +348,7 @@ convert_from_utf_to_current_c (const int input_char)
|
|||||||
conv = str_crt_conv_from (cp_from);
|
conv = str_crt_conv_from (cp_from);
|
||||||
|
|
||||||
if (conv != INVALID_CONV) {
|
if (conv != INVALID_CONV) {
|
||||||
switch (str_translate_char (conv, str, sizeof(str), buf_ch, sizeof(buf_ch))) {
|
switch (str_translate_char (conv, str, -1, buf_ch, sizeof(buf_ch))) {
|
||||||
case 0:
|
case 0:
|
||||||
ch = buf_ch[0];
|
ch = buf_ch[0];
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user