<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Windows filenames should be in UTF-8 encoding"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103536#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Windows filenames should be in UTF-8 encoding"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103536">bug 103536</a>
              from <span class="vcard"><a class="email" href="mailto:spitzak@gmail.com" title="Bill Spitzak <spitzak@gmail.com>"> <span class="fn">Bill Spitzak</span></a>
</span></b>
        <pre>I personally am not thrilled that the function has two different methods of
returning errors. I would instead just return null if the utf8->utf16
conversion fails and force errno to whatever it gets if you send invalid utf16
as a filename to Windows. Then it is easier to drop-in replacement of fopen.

If you don't do that it may be better to return the status number for any
failure, rather than the case statements that remain below both calls to this.</pre>
        </div>
      </p>


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

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