-
Notifications
You must be signed in to change notification settings - Fork 540
Open
Labels
E-help-wantedWe encourage you to jump in on these!We encourage you to jump in on these!I-bugIt shouldn't be doing this.It shouldn't be doing this.
Description
It looks like Debug::FormatMessageA()
requires subsequent conversion from the national code page to UTF-8 here:
Lines 725 to 733 in ccfebb2
/// Formats a platform error code into a human-readable string. | |
pub fn apperr_format(f: &mut std::fmt::Formatter<'_>, code: u32) -> std::fmt::Result { | |
unsafe { | |
let mut ptr: *mut u8 = null_mut(); | |
let len = Debug::FormatMessageA( | |
Debug::FORMAT_MESSAGE_ALLOCATE_BUFFER | |
| Debug::FORMAT_MESSAGE_FROM_SYSTEM | |
| Debug::FORMAT_MESSAGE_IGNORE_INSERTS, | |
null(), |
Metadata
Metadata
Assignees
Labels
E-help-wantedWe encourage you to jump in on these!We encourage you to jump in on these!I-bugIt shouldn't be doing this.It shouldn't be doing this.