mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
bug 153: Convert titles in bookmark manager from UTF-8.
This commit is contained in:
parent
b3f9d48bba
commit
b3acd2a5bc
@ -56,9 +56,16 @@ static unsigned char *
|
||||
get_bookmark_text(struct listbox_item *item, struct terminal *term)
|
||||
{
|
||||
struct bookmark *bookmark = item->udata;
|
||||
int utf8_cp = get_cp_index("UTF-8");
|
||||
int term_cp = get_terminal_codepage(term);
|
||||
struct conv_table *convert_table;
|
||||
|
||||
/** @todo Bug 153: bookmark->title should be UTF-8 */
|
||||
return stracpy(bookmark->title);
|
||||
convert_table = get_translation_table(utf8_cp, term_cp);
|
||||
if (!convert_table) return NULL;
|
||||
|
||||
return convert_string(convert_table,
|
||||
bookmark->title, strlen(bookmark->title),
|
||||
term_cp, CSM_NONE, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
static unsigned char *
|
||||
|
Loading…
Reference in New Issue
Block a user