mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-06 15:49:35 +03:00
The CSV output mode does not sign-extend bytes where the high-order bit is set.
Ticket #1397. (CVS 2644) FossilOrigin-Name: 528df777e5d76077d8766f04ee222fd64d9373a6
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains code to implement the "sqlite" command line
|
||||
** utility for accessing SQLite databases.
|
||||
**
|
||||
** $Id: shell.c,v 1.125 2005/08/29 23:06:24 drh Exp $
|
||||
** $Id: shell.c,v 1.126 2005/08/30 20:12:02 drh Exp $
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -313,7 +313,7 @@ static void output_c_string(FILE *out, const char *z){
|
||||
fputc('\\', out);
|
||||
fputc('r', out);
|
||||
}else if( !isprint(c) ){
|
||||
fprintf(out, "\\%03o", c);
|
||||
fprintf(out, "\\%03o", c&0xff);
|
||||
}else{
|
||||
fputc(c, out);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user