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

Regz Outputs LE UTF-16 Text #313

Open
Bud-ro opened this issue Dec 11, 2024 · 1 comment
Open

Regz Outputs LE UTF-16 Text #313

Bud-ro opened this issue Dec 11, 2024 · 1 comment

Comments

@Bud-ro
Copy link

Bud-ro commented Dec 11, 2024

Currently when I run regz the output is LE UTF-16:

$ file generated.zig
generated.zig: Little-endian UTF-16 Unicode text, with CRLF line terminators

I'd prefer if the output format was UTF-8 instead of another encoding. Attempting to compile a zig file that is LE UTF-16 encoded results in a very strange error. As it stands I have to re-encode the generated file in order to utilize it in my projects.

Commit: cca83d5
OS: Windows 10
Version: Zig 0.13.0

@Bud-ro
Copy link
Author

Bud-ro commented Dec 13, 2024

I have since discovered Powershell uses LE UTF-16, and it's very much hard coded :)
So I think the real issue is lacking an option to write the output directly to a file. An option like -o registers.zig could allow for UTF-8 to simply be used across every OS.

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

1 participant