mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 417264 ? Bookmarks with Japanese characters are not imported from Safari (r=mano)
This commit is contained in:
parent
c2a615ee4e
commit
31a769edba
@ -1022,15 +1022,16 @@ nsSafariProfileMigrator::ParseBookmarksFolder(CFArrayRef aChildren,
|
||||
// Encountered a Bookmark, so add it to the current folder...
|
||||
CFDictionaryRef URIDictionary = (CFDictionaryRef)
|
||||
::CFDictionaryGetValue(entry, CFSTR("URIDictionary"));
|
||||
nsCAutoString title, url;
|
||||
if (GetDictionaryCStringValue(URIDictionary, CFSTR("title"), title, kCFStringEncodingUTF8) &&
|
||||
nsAutoString title;
|
||||
nsCAutoString url;
|
||||
if (GetDictionaryStringValue(URIDictionary, CFSTR("title"), title) &&
|
||||
GetDictionaryCStringValue(entry, CFSTR("URLString"), url, kCFStringEncodingUTF8)) {
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
PRInt64 id;
|
||||
rv |= NS_NewURI(getter_AddRefs(uri), url);
|
||||
PRInt64 id;
|
||||
rv |= aBookmarksService->InsertBookmark(aParentFolder, uri,
|
||||
nsINavBookmarksService::DEFAULT_INDEX,
|
||||
title, &id);
|
||||
NS_ConvertUTF16toUTF8(title), &id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user