<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
<br>
</div>Do you have a complete list of programs that require the current<br>
codepage to be used? If it is jut gcc, it seems better to switch clang<br>
to using ld directly instead of calling gcc for linking. From the<br>
perspective of this patch it would mean marking gcc as not supporting<br>
response files.<br>
<br></blockquote><div>IIRC my conclusion was that all GNU programs running on Windows uses the current codepage, which would mean that binutils is also on this category. But I will re-investigate this matter to be sure.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Since the function may write UTF8, UTF16 and native codepage, what<br>
about calling it just writeFileWithEncoding and pass an<br>
UTF8/UTF16/CurrentCP enum value to it? The unix version can just<br>
assert that it is always passed UTF8.<br>
<br></blockquote><div>Sounds great, I will implement this change.</div><div><br></div><div>Regards,</div><div>Rafael Auler</div></div></div></div>