<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Image import in KDE LibreOffice fails if filename contains non-latin characters"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125971#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Image import in KDE LibreOffice fails if filename contains non-latin characters"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125971">bug 125971</a>
              from <span class="vcard"><a class="email" href="mailto:sbergman@redhat.com" title="Stephan Bergmann <sbergman@redhat.com>"> <span class="fn">Stephan Bergmann</span></a>
</span></b>
        <pre>(In reply to Stephan Bergmann from <a href="show_bug.cgi?id=125971#c8">comment #8</a>)
<span class="quote">> (In reply to Jan-Marek Glogowski from <a href="show_bug.cgi?id=125971#c7">comment #7</a>)
> > I'll fix this eventually by using
> > 
> > OUString aNewURL =
> > uri::ExternalUriReferenceTranslator::create(m_xContext)-
> > >translateToInternal(toOUString(aURL.toEncoded()));

> ...which, as I said on IRC, is wrong.  QUrl::toEncoded is documented
> (<<a href="https://doc.qt.io/qt-5/qurl.html#toEncoded">https://doc.qt.io/qt-5/qurl.html#toEncoded</a>> ) to generate a file URL whose
> "payload" is UTF-8--encoded.  But
> css.uri.XExternalUriReferenceTranslator::translateToInternal expects its
> argument to have a "payload" encoded according to the system locale (i.e.,
> osl_getThreadTextEncoding).  As QUrl provides a file URL with "payload" in
> UTF-8, which is the same format as used internally in LO, there is no need
> to map here from external to internal URL.</span >

...but see <<a href="https://gerrit.libreoffice.org/74359">https://gerrit.libreoffice.org/74359</a>> "<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Image import in KDE LibreOffice fails if filename contains non-latin characters"
   href="show_bug.cgi?id=125971">tdf#125971</a>: map file URLs
from QFileDialog to LO internal format" :)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>