This file contains 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
/* | |
* libmbfl UTF-16 and UTF-32 bug example. | |
* gcc -o mbfl_test mbfltest.c -ldl | |
* One may need to adjust CONST_MBFL_PATH to run this program. | |
*/ | |
#include <stdio.h> | |
#include <dlfcn.h> | |
#include <stdlib.h> | |
#include <mbfl/mbfilter.h> |
This file contains 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
/*- clang -std=c89 bug.c -o bug -lntoh */ | |
#ifdef __STRICT_ANSI__ | |
#undef __STRICT_ANSI__ | |
#endif | |
#ifdef _ISOC99_SOURCE | |
#undef _ISOC99_SOURCE | |
#endif | |
#ifdef _POSIX_SOURCE | |
#undef _POSIX_SOURCE |
This file contains 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 <errno.h> | |
#include <pthread.h> | |
#include <stdio.h> | |
#include <dirent.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <unistd.h> |