store only UTF8 into history entry

This commit is contained in:
ftang%netscape.com 1998-09-24 19:50:02 +00:00
Родитель 6fc7777c17
Коммит 672d0839aa
1 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -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);