-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch makes a number of code changes to make Unicode build actually work (instead of crashing). This involves using the `_t`-family of CRT string routines and using the `_T()` macro to wrap char and string literals wherever Unicode needs to be handled. Some macros are also added to util.h that perform explicit zero-extending operations on character types; this is to defend against build setups whose compiler (possibly through a command line switch) treats `char` and/or `wchar_t` as signed, therefore performs sign-extension when a `char` is implicitly converted to an `int` or a `wchar_t`. Care has been taken to ensure Unicode build of the program doesn't do things differently from the ASCII/MBCS build; in particular config file operations remain ASCII-based as they are today.
- Loading branch information
Showing
3 changed files
with
71 additions
and
54 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
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
Oops, something went wrong.