Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#166 closed баг (fixed)

Неверно отображается URI пользователей с нелатинскими символами в username

Reported by: alx Owned by: dimag
Priority: major Milestone: 2 очередь
Component: ПО MC04-Dispatcher. Пульт диспетчера/техника Keywords:
Cc: san

Description


Attachments (2)

bug.jpg (7.6 KB ) - added by alx 8 years ago.
ss1.jpg (6.8 KB ) - added by alx 8 years ago.

Download all attachments as: .zip

Change History (19)

by alx, 8 years ago

Attachment: bug.jpg added

comment:1 by dimag, 8 years ago

Resolution: fixed
Status: newclosed

rev 227

comment:2 by alx, 8 years ago

Resolution: fixed
Status: closedreopened

??? Нет ревизии r227 в репозитории.

comment:3 by dimag, 8 years ago

Resolution: fixed
Status: reopenedclosed

есть

comment:4 by alx, 8 years ago

Resolution: fixed
Status: closedreopened

r227 появилась, но описанный баг в ней по-прежнему присутствует.

comment:5 by dimag, 8 years ago

Resolution: fixed
Status: reopenedclosed

comment:6 by alx, 8 years ago

Resolution: fixed
Status: closedreopened

В репозитории нет ревизии r229.

comment:7 by dimag, 8 years ago

Resolution: fixed
Status: reopenedclosed

Ждите когда появится, я вам сообщу.

comment:8 by alx, 8 years ago

Resolution: fixed
Status: closedreopened

Спасибо, буду ждать. А пока исправление не появилось, пусть тикет будет открыт.

comment:10 by dimag, 8 years ago

Resolution: fixed
Status: reopenedclosed

by alx, 8 years ago

Attachment: ss1.jpg added

comment:11 by alx, 8 years ago

Resolution: fixed
Status: closedreopened

В r229 баг по-прежнему присутствует. Вот как отображается URI пользователя "тест11":


Вот вывод этого пользователя по list_users:

тест11|test|192.168.0.63|default|error/user_not_registered||test11|

comment:12 by dimag, 8 years ago

Resolution: fixed
Status: reopenedclosed

r230
Возможно в вашей версии Linux кодировка по умолчанию отличная от UTF-8, которая используется по умолчанию в моём дистрибутиве.
Я добавил следующую строку в начало функции main.
QTextCodec *pCodec = QTextCodec::codecForName("utf-8");
QTextCodec::setCodecForLocale(pCodec);
Теперь везде должен использоваться одинаковый кодек для кодировок.

in reply to:  12 comment:13 by alx, 8 years ago

Resolution: fixed
Status: closedreopened

Replying to dimag:

r230

В r230 баг по-прежнему присутствует. Симптомы те же.

Возможно в вашей версии Linux кодировка по умолчанию отличная от UTF-8, которая используется по умолчанию в моём дистрибутиве.

Программа тестировалась при кодировке локали именно UTF-8.

Я добавил следующую строку в начало функции main.
QTextCodec *pCodec = QTextCodec::codecForName("utf-8");
QTextCodec::setCodecForLocale(pCodec);

Не помогло.

comment:14 by alx, 8 years ago

Resolution: fixed
Status: reopenedclosed

In 232/dispatcher:

При старте программы CodecForCStrings устанавливается в кодировку UTF-8.
Fixes #166,#171,#197.

comment:15 by alx, 8 years ago

Resolution: fixed
Status: closedreopened

Модификация, сделанная в r232, откачена в r233.

comment:16 by alx, 8 years ago

Resolution: fixed
Status: reopenedclosed

Исправлено в r235: QTextCodec::setCodecForCStrings() выполняется только для версий Qt меньше 5.

comment:17 by san, 6 years ago

Milestone: Текущее2 очередь

Milestone renamed

Note: See TracTickets for help on using tickets.