plan9port/src/cmd/unutf.c
rsc f7012583e9 Add the #goo to allow use in C++.
Silence a few more warnings.
Strip down the mkfiles more.
Fix bug in X11 mouse handling, note groups.
2003-11-25 01:40:27 +00:00

20 lines
289 B
C

/*
* stupid little program to pipe unicode chars through
* when converting to non-utf compilers.
*/
#include <u.h>
#include <libc.h>
#include <bio.h>
Biobuf bin;
void
main(void)
{
int c;
Binit(&bin, 0, OREAD);
while((c = Bgetrune(&bin)) >= 0)
print("0x%ux\n", c);
exits(0);
}