-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes two issues with file handling on windows:
. If UNICODE is set, then win32 functions taking file paths use wide (utf-16) strings. For example, FindFirstFile really calls to FindFirstFileW, which takes a wchar_t*. This adds support for the unicode path. . SetContents() changes from "w" to "wb". This is necessary as windows will do some amount of encoding without "b", which results in much different values being written. PiperOrigin-RevId: 564842317
- Loading branch information
1 parent
dbcdb44
commit 5b08a09
Showing
1 changed file
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters