SQLite User Forum

may be a bug in sqldiff
Login

may be a bug in sqldiff

(1.1) By shamork on 2024-05-29 02:42:30 edited from 1.0 [source]

//in function static void printQuoted(FILE *out, sqlite3_value *X)
385:        for(i=j=0; zArg[i]; i++){
386:          char c = zArg[i];
387:          int ctl = iscntrl(c);

when compiling in win10+vs2022, iscntrl is extern "C" int (__cdecl iscntrl)(int const c); when c=-28;//'รค' will throw ab exception

change to unsigned char will fix this;

386:          unsigned char c = zArg[i];

(2) By Larry Brasfield (larrybr) on 2024-05-29 03:36:47 in reply to 1.1 [link] [source]

Thanks for reporting this. Fixed on trunk now.