Branch: Tag:

2003-10-20

2003-10-20 13:12:18 by Martin Stjernholm <mast@lysator.liu.se>

Use java style unicode escaping in make_plain_file.

Rev: src/program.c:1.528

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.527 2003/09/30 13:18:15 grubba Exp $ + || $Id: program.c,v 1.528 2003/10/20 13:12:18 mast Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.527 2003/09/30 13:18:15 grubba Exp $"); + RCSID("$Id: program.c,v 1.528 2003/10/20 13:12:18 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
5393:       if(chr > 255)    { -  sprintf(buffer+ptr,"\\0x%x",chr); +  sprintf(buffer+ptr,"\\u%04X",chr);    ptr+=strlen(buffer+ptr);    }else{    buffer[ptr++]=chr;