https://bugs.freedesktop.org/show_bug.cgi?id=56366

--- Comment #8 from Stephan Bergmann <sberg...@redhat.com> ---
(In reply to comment #7)
> I found (at least one) place where characters get clipped:
>  TitleHelper::impl_convertURL2Title
> http://opengrok.libreoffice.org/xref/core/framework/source/fwe/helper/
> titlehelper.cxx#impl_convertURL2Title
> which uses INetURLObject, and it clips to 16bit, in our case it is line 3727:
>  aResult.append(sal_Unicode(nUTF32));
> http://opengrok.libreoffice.org/xref/core/tools/source/fsys/urlobj.cxx#3727
> 
> So, if I change it to use the proper conversion:
>  aResult.append(OUString(&nUTF32, 1));
> the title is alright.
> 
> Stephan,
> it that OK to teach INetURLObject::decode the full UTF-16 support?

That looks like a bug indeed.  There is OUStringBuffer.appendUtf32, so the best
fix appears to be to change both occurrences of

  aResult.append(sal_Unicode(nUTF32));

in INetURLObject::decode with

  aResult.appendUtf32(nUTF32);

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to