Struggling to fix this problem myself, hoping for a solution to be posted while I'm at work.
The section of code where iconv() is used:
Code:
if ( encoding != std_encoding_utf ) {
fprintf( stderr, "N = %p, C = %p, NS = %zu, CS = %zu\n",
N, C, NS, CS );
while ( NS && CS ) {
bytes = iconv( utf_to_iconv[encoding], &N, &NS, &C, &CS );
if ( !bytes || bytes == (size_t)-1 ) break;
if ( errno ) {
ret = errno;
FAIL( stderr, ret, "");
break;
}
}
if ( NS ) {
ret = ENOMEM;
FAIL( stderr, ret, "" );
}
}
My output via Geany's "Compiler" tab:
Code:
make char.run
cc -fPIC -Wall -Wno-multichar -shared -o ./libnext.so -c next.c
cc -fPIC -Wall -Wno-multichar -shared -o ./libtsc.so -c tsc.c
cc -fPIC -Wall -Wno-multichar -shared -o ./libbase62.so -c base62.c
cc -fPIC -Wall -Wno-multichar -D OUT=char.elf -o ./char.elf char.c ./libnext.so ./libtsc.so ./libbase62.so
./char.elf
N = 0x560e06a2b210, C = 0x560e06a2d220, NS = 3, CS = 8192
make: *** [makefile:36: char.run] Segmentation fault (core dumped)
rm libtsc.so libbase62.so char.elf libnext.so
Compilation failed.
Edit: Uploaded the files here:
multi_literal_test.tar.gz - Google Drive
off to work now