1
0
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:
drh
2005-08-30 20:12:02 +00:00
parent 63782855ee
commit 0a8640d4f2
3 changed files with 9 additions and 9 deletions

View File

@@ -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);
}