Coerce keyFileCustomPath to UTF-8

The text encoding (or even field type) can be practically anything, so we need to either handle everything or coerce to UTF-8.

This is a quick fix for an issue with QuickCursor, a more thorough review of encoding used with AppleEvents is to follow.
This commit is contained in:
Allan Odgaard
2012-08-31 14:55:23 +02:00
parent 74961834e0
commit 73ff758a52

View File

@@ -154,7 +154,7 @@ bool DidHandleODBEditorEvent (AppleEvent const* event)
documents.back()->set_recent_tracking(false);
if(displayNames && i < displayNames->array_size())
documents.back()->set_custom_name(displayNames->record_at_index(i)->data());
documents.back()->set_custom_name(displayNames->record_at_index(i, typeUTF8Text)->data());
if(positions && i < positions->array_size())
{