Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_T function in ansi mode generates return type error. #8

Open
Flaminator opened this issue Sep 8, 2021 · 2 comments
Open

_T function in ansi mode generates return type error. #8

Flaminator opened this issue Sep 8, 2021 · 2 comments

Comments

@Flaminator
Copy link
Contributor

The _T function found in /src/zig.zig#L17 gives back the following error when you use it when running the program in ansi mode:

.\win32\win32\zig.zig:17:75: error: expected type '*const [4:0]u8', found '[]const u8'

Ran into this when I was playing around trying to see if I could build my program run on Windows 2000(Found out it doesn't).

@marler8997
Copy link
Collaborator

How did you enable ansi mode? I believe I hardcoded it to wide because of a compiler bug. Did you just modify the mode in the source code?

@Flaminator
Copy link
Contributor Author

I did change the source code yes, I enabled ansi mode by changing the following line in /src/zig.zig#L9 from:

pub const unicode_mode = UnicodeMode.wide;

to:

pub const unicode_mode = UnicodeMode.ansi;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants