Panic in non-utf-8 code pages in Windows
All lines of code String::from_utf8(output.stdout).unwrap() in pgrx-pg-config cause a panic if Windows uses a non utf-8 code page, e.g. Cyrillic Windows uses 866.
Possible solutions:
- Use
from_utf8_lossy - Add additional step in Getting Started for Windows: Using UTF-8 in the Windows Terminal
I have same problem. In windows 11 enviroment. How can I solve this?
I have same problem. In windows 11 enviroment. How can I solve this?
I'll make PR. For now, you can check the Beta: Use Unicode UTF-8 for worldwide language support option. checkbox in Windows settings.
hi @if0ne
I can not use Beta use unicode option. because character is broken by this option(my old program). I solve this from first comment to use function of from_utf8_lossy.
thanks your comment