ALT Linux Bugzilla
– Attachment 1427 Details for
Bug 9238
Incorrect handling of non-latin1 categories names in KeyRing extension
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Patch for jpilot-0.99.9-alt1.pre2
jpilot-0.99.9pre2-alt-keyring_cat.patch (text/plain), 870 bytes, created by
Nikolay A. Fetisov
on 2006-03-13 01:26:23 MSK
(
hide
)
Description:
Patch for jpilot-0.99.9-alt1.pre2
Filename:
MIME Type:
Creator:
Nikolay A. Fetisov
Created:
2006-03-13 01:26:23 MSK
Size:
870 bytes
patch
obsolete
>Fix for non-Latin1 categories in Keyring plugin > >--- ./KeyRing/keyring.c 2005-12-30 22:01:08 +0300 >+++ ./KeyRing/keyring.c 2006-03-12 11:17:14 +0300 >@@ -1344,7 +1344,9 @@ > int i, count; > char all[]=N_("All"); > char *categories[18]; >- >+ int len; >+ char *temp_str; >+ > jp_logf(JP_LOG_DEBUG, "KeyRing: make_menus\n"); > > /* This gets the application specific data out of the database for us. >@@ -1369,8 +1371,11 @@ > if (ai.name[i][0]=='\0') { > continue; > } >- jp_charset_p2j(ai.name[i], 16); > categories[count+1]=ai.name[i]; >+ temp_str = malloc((len = strlen(categories[count+1])*2+1)); >+ multibyte_safe_strncpy(temp_str, categories[count+1], len); >+ jp_charset_p2j(temp_str, len); >+ categories[count+1]=temp_str; > glob_category_number_from_menu_item[count++]=i; > } > categories[count+1]=NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9238
: 1427