Hi,
in AP_UnixApp::getCurrentSelection(), when we are requested for a text
format, we are not specifying a encoding for the IE_Exp_Text, so it is
currently returning the text in the doc encoding.
if ( AP_UnixClipboard::isTextTag(formatList[j]) )
{
IE_Exp_Text * pExpText = new IE_Exp_Text(dr.m_pDoc);
if (!pExpText)
return false;
pExpText->copyToBuffer(&dr,&m_selectionByteBuf);
DELETEP(pExpText);
goto ReturnThisBuffer;
}
I think we should always export as UTF-8 in this case, as the formats
accepted by AP_UnixClipboard::isTextTag or don't have a specific
encoding or have to be UTF-8.
So I propose to change that code to
IE_Exp_Text * pExpText = new IE_Exp_Text(dr.m_pDoc, "UTF-8");
Do you think it is a reasonable assumption in Unix to return in UTF-8
all text requested by the clipboard?
Regards,
Tomeu
Received on Sun Jan 28 11:01:28 2007
This archive was generated by hypermail 2.1.8 : Sun Jan 28 2007 - 11:01:28 CET