encoding char=30 (record seperator) in ToJSON
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 15 Jun 2006 19:08:55 +0000 (19:08 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 15 Jun 2006 19:08:55 +0000 (19:08 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@737 9efc2488-bf62-4759-914b-345cdb29e865

src/utils/utils.c

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