To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=62664





------- Additional comments from [EMAIL PROTECTED] Fri May 19 13:44:56 -0700 
2006 -------
So - this is clearly bogus. The D/B construction allows the 'system' charset -
which in my case (and in ~all Unix cases) is UTF-8 to be used.

On the other hand, it doesn't allow that to be selected:

dbaccess/source/ui/dlg/detailpages.cxx:
// the only types we're interested in is TEXT and DBASE
if ( ( DST_DBASE == eDSType ) || ( DST_FLAT == eDSType ) )
{
        // for these types, we need to exclude all encodings which do not have 
a fixed
character
        // length (such as UTF-8)
        rtl_TextEncodingInfo aEncodingInfo; aEncodingInfo.StructSize = sizeof(
rtl_TextEncodingInfo );

Clearly we should be doing 'whole-character' truncation for UTF-8 so we don't
end up with an invalid string - but honestly; how difficult is that ? it's not a
common case, so we can fix it with a really dim solution for UTF-8 - surely ?

Indeed - the dbase code looks (in general) ok - except for some instances like:

connectivity/source/driver/dbase/DTable.cxx
                    // convert the string, using the connection's encoding
                    ::rtl::OString sEncoded;
                    DBTypeConversion::convertUnicodeString( sStringToWrite,
sEncoded, getConnection()->getTextEncoding() );
                    memcpy( pData, sEncoded.getStr(), ::std::min( nLen,
sEncoded.getLength() ) );

I guess this just needs fixing up with a:

 while (convertUString(aStringToWrite, ...) > nLen) 
    chop-one-char-off-aStringToWrite

and have done with it (?). Frank I'm sure your thoughts here would be much
appreciated - it seems having mixed Asian/Latin bibliographies is currently not
possible (eg.)

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to