added escape for 0x1 char
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 21 Aug 2006 22:09:04 +0000 (22:09 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 21 Aug 2006 22:09:04 +0000 (22:09 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@765 9efc2488-bf62-4759-914b-345cdb29e865

src/utils/utils.c

index fcdb14a..4a7e1b3 100644 (file)
@@ -351,6 +351,10 @@ char* uescape( const char* string, int size, int full_escape ) {
                                                OSRF_BUFFER_ADD(buf, "\\u001E");
                                                break;
 
+                                       case 1: /* record separator */
+                                               OSRF_BUFFER_ADD(buf, "\\u0001");
+                                               break;
+
 
                                        default:
                                                OSRF_BUFFER_ADD_CHAR(buf, c);