mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
e3c1626dfe
* github.com/nemtrif/utfcpp * hmm... try tea.xyz/gx/make for linux test * test +gnu.org/gcc: '*' * LDFLAGS * -DCMAKE_CXX_FLAGS="-std=c++14" * LD_LIBRARY_PATH * -DCMAKE_CXX_FLAGS="-std=c++17" * gc++ maybe * without DCMAKE_CXX_COMPILER * -gnu.org/gcc: '*' * +tea.xyz/gx/cc: c99 * test deps
6 lines
No EOL
181 B
C++
6 lines
No EOL
181 B
C++
#include <utf8.h>
|
|
int main() {
|
|
unsigned char u[5] = {0, 0, 0, 0, 0};
|
|
utf8::append(0x0448, u);
|
|
return (u[0] == 0xd1 && u[1] == 0x88 && u[2] == 0 && u[3] == 0 && u[4] == 0) ? 0 : 1;
|
|
} |