<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LibreOffice 5.4.2.2 installs but will not run on Windows XP SP3 (32-bit)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=112928">bug 112928</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>mikekaganski@hotmail.com, sbergman@redhat.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LibreOffice 5.4.2.2 installs but will not run on Windows XP SP3 (32-bit)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=112928#c26">Comment # 26</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LibreOffice 5.4.2.2 installs but will not run on Windows XP SP3 (32-bit)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=112928">bug 112928</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre>Stephan/Mike: last V Stuart Foote's bt indicates the pb is:
00e3f78c 002d9eed kernel32!CreateFileW+0x35f
00e3f7c0 013844c4 sal3!osl_openFile(struct _rtl_uString * strPath = 0x02e2b4b0,
void ** pHandle = 0x02e8c914, unsigned long uFlags = 1)+0x7d
[c:\cygwin64\home\buildslave\source\libo-core\sal\osl\w32\file.cxx @ 737]
thought you might be interested in this bugtracker.

Here's the line:
720      HANDLE hFile = CreateFileW(
721          o3tl::toW(rtl_uString_getStr(strSysPath)),
722          dwAccess, dwShare, nullptr, dwCreation, 0, nullptr);
See <a href="https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file.cxx#720">https://opengrok.libreoffice.org/xref/core/sal/osl/w32/file.cxx#720</a>

I tried to unwind this:
"rtl_uString_getStr" returns "sal_Unicode *" 
see <a href="https://opengrok.libreoffice.org/xref/core/include/rtl/ustring.h#1414">https://opengrok.libreoffice.org/xref/core/include/rtl/ustring.h#1414</a>

then "sal_Unicode" is "wchar_t" for SAL_W32
138  #elif defined(SAL_W32)
139      typedef wchar_t sal_Unicode;
see <a href="https://opengrok.libreoffice.org/xref/core/include/sal/types.h#137">https://opengrok.libreoffice.org/xref/core/include/sal/types.h#137</a>

o3tl::toW takes for input char16_t * and returns wchar_t *
<a href="https://opengrok.libreoffice.org/xref/core/include/o3tl/char16_t2wchar_t.hxx#15">https://opengrok.libreoffice.org/xref/core/include/o3tl/char16_t2wchar_t.hxx#15</a>

It seems we call o3tl::toW with an arg which is already wchar_t, could the
implicit conversion to char16_t be the culprit?</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>