Closed EvgeniiBalabanov closed 3 years ago
ft_putchar_fd same
ft_putchar_fd: [OK] [OK] [KO]
[KO]: your putchar_fd does not work with unicode
Test code:
char buff[10];
char buff2[10];
int c = L'ø';
int len = 0;
putwchart(c, &len, buff2);
buff2[len] = 0;
fd_to_buffer(2);
ft_putchar_fd(c, 2);
write(2, "", 1);
get_fd_buffer(2, buff, 10);
if (!strcmp(buff, buff2))
exit(TEST_SUCCESS);
exit(TEST_KO);
Diffs:
putchar_fd: |?|
ft_putchar_fd: |ø|
I can't test my libft on windows. Help me please!
Hello, these issues should be fixed with this commit: https://github.com/alelievr/libft-unit-test/commit/58eb06719f8af1426614602d9b7f6013d264947d Thanks for reporting it :)