Last active
January 13, 2023 21:57
-
-
Save louisswarren/9f274d8f93c6cb4852a31adaf2761ed3 to your computer and use it in GitHub Desktop.
Fullwidth text is even more upper case than upper case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
int | |
main(void) | |
{ | |
int c, d; | |
while ((c = getchar()) != EOF) { | |
d = c & 0x1f; | |
if ((c | 0x20) > 0x60 && d < 26) { | |
putchar(0xef); | |
putchar(0xbc); | |
c = 0xa0 + d; | |
} | |
putchar(c); | |
} | |
return 0; | |
} |
Author
louisswarren
commented
Jan 13, 2023
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment