[Pidgin] #16097: Friendly name with RTL characters do not display properly
Pidgin
trac at pidgin.im
Mon Mar 3 17:55:17 EST 2014
#16097: Friendly name with RTL characters do not display properly
--------------------------+--------------------------
Reporter: hayhackerall | Owner: EionRobb
Type: patch | Status: new
Milestone: | Component: unclassified
Version: 2.10.9 | Keywords:
--------------------------+--------------------------
defect #3149 i think this code will solve the problem
char *new_message = g_memdup(displaying, length);
char *alias_escaped = (alias ? g_markup_escape_text(alias, strlen(alias))
: g_strdup(""));
/* The initial offset is to deal with
escaped entities making the string longer */
int tag_start_offset = alias ? (strlen(alias_escaped) - strlen(alias)) :
0;
int tag_end_offset = 0;
if (flags & PURPLE_MESSAGE_WHISPER) {
str = g_malloc(1024);
/* If we're whispering, it's not an autoresponse. */
if (purple_message_meify(new_message, -1 )) {
g_snprintf(str, 1024, "*%s", alias_escaped);
strcpy(color, "#6C2585");
tag_start_offset += 3;
}
else {
g_snprintf(str, 1024, "*%s*:", alias_escaped);
tag_start_offset += 1;
tag_end_offset = 2;
strcpy(color, "#00FF00");
}
}
--
Ticket URL: <https://developer.pidgin.im/ticket/16097>
Pidgin <https://pidgin.im>
Pidgin
More information about the Tracker
mailing list