зеркало из https://github.com/mozilla/pjs.git
store only UTF8 into history entry
This commit is contained in:
Родитель
5566894a07
Коммит
46b7ba45db
|
@ -2076,7 +2076,16 @@ XFE_SetDocTitle (MWContext *context, char *title)
|
|||
History_entry *he = SHIST_GetCurrent (&context->hist);
|
||||
char *url = (he && he->address ? he->address : 0);
|
||||
|
||||
SHIST_SetTitleOfCurrentDoc (&context->hist, title);
|
||||
char *utf8_title = NULL;
|
||||
utf8_title = (NULL == title) ? NULL : INTL_ConvertLineWithoutAutoDetect(
|
||||
INTL_GetCSIWinCSID(c),
|
||||
CS_UTF8,
|
||||
title,
|
||||
XP_STRLEN(title));
|
||||
|
||||
SHIST_SetTitleOfCurrentDoc (&context->hist, utf8_title);
|
||||
|
||||
XP_FREEIF(utf8_title);
|
||||
|
||||
fe_UpdateDocInfoDialog (context);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче