Adium: Fix adding contacts with non-ascii names to buddy list
This commit is contained in:
parent
de17ccb982
commit
ccf28caa8c
2 changed files with 14 additions and 1 deletions
|
@ -103,6 +103,19 @@
|
|||
intValue]);
|
||||
}
|
||||
|
||||
/**!
|
||||
* @brief Returns the name passed to new_purple_buddy, when adding a new contact
|
||||
*
|
||||
* This function is called when creating a new contact from the purple GUI.
|
||||
*/
|
||||
- (NSString *)_UIDForAddingObject:(AIListContact *)object
|
||||
{
|
||||
// The contact UID in Adium was encoded with decomposoed unicode codepoints (see http://unicode.org/reports/tr15/).
|
||||
// Since libtgl and libpurple (and apparently the rest of the world) encode with composed code points, the name
|
||||
// needs to be converted to the composed format to prevent inequality in binary string comparison.
|
||||
return [object.UID precomposedStringWithCanonicalMapping];
|
||||
}
|
||||
|
||||
#pragma mark Action Menu
|
||||
-(NSMenu*)actionMenuForChat:(AIChat*)chat
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9060" systemVersion="15B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9060" systemVersion="15C50" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9060"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue