The CSV output mode does not sign-extend bytes where the high-order bit is set.

Ticket . (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

@ -1,5 +1,5 @@
C Fix\sprintf.c\sso\sthat\sit\shandles\s10.0\scorrectly.\s(CVS\s2643)
D 2005-08-30T19:30:59
C The\sCSV\soutput\smode\sdoes\snot\ssign-extend\sbytes\swhere\sthe\shigh-order\sbit\sis\sset.\nTicket\s#1397.\s(CVS\s2644)
D 2005-08-30T20:12:02
F Makefile.in 12784cdce5ffc8dfb707300c34e4f1eb3b8a14f1
F Makefile.linux-gcc 06be33b2a9ad4f005a5f42b22c4a19dab3cbb5c7
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@ -64,7 +64,7 @@ F src/prepare.c 86f0d8e744b8d956eff6bc40e29049efee017610
F src/printf.c d2678b06cfa07be9b14c330a42310f62340e34ce
F src/random.c 90adff4e73a3b249eb4f1fc2a6ff9cf78c7233a4
F src/select.c a185b91fd0060a16ada1a32de844d8e570273070
F src/shell.c d2d4ef04732c28a84d108b8413cd4e584754a158
F src/shell.c b21daba017b8feef2fdc65ecde57f70209494217
F src/sqlite.h.in d6561d51025d08de4f455607f3f9f9aa76e855d5
F src/sqliteInt.h 207b63f9782d7faf1f19e694e8052e60841fb377
F src/table.c 25b3ff2b39b7d87e8d4a5da0713d68dfc06cbee9
@ -299,7 +299,7 @@ F www/tclsqlite.tcl 3df553505b6efcad08f91e9b975deb2e6c9bb955
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b
F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
P 4ab994a87ee844f453d693555abd61b51bb44a0e
R 106c16c92c68a4e3427edf7e39ce8d68
P 0f7a53f78d9dd5c426be834f2d50a6fe4e860141
R f1bc0e4a2c4ceb3e245064f15c4dbe8a
U drh
Z 17516a59ec1ecb81c51ea80b9861d229
Z 6881c22eb7e94b960094ada2d2c618e3

@ -1 +1 @@
0f7a53f78d9dd5c426be834f2d50a6fe4e860141
528df777e5d76077d8766f04ee222fd64d9373a6

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