Skip to content

Commit d46912d

Browse files
committed
🛠 print utf32 bytes correctly
1 parent 9eed44b commit d46912d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/basic/source/registry_windows_code_page.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ int main(int argc, char* argv[]) {
203203
}
204204

205205
printf("Output conversion result:\n");
206-
cnc_print_str_c32n(output_bytes_written / sizeof(*output_data), output_data);
206+
cnc_print_str_c32n(output_bytes_written / sizeof(ztd_char32_t),
207+
(const ztd_char32_t*)(&output_data[0]));
207208
printf("\nOriginal Input:\n");
208209
cnc_print_str_c32n(ztdc_c_string_array_size(input_data), input_data);
209210
printf("\n\n");

0 commit comments

Comments
 (0)