pike.git/
src/
program.c
Branch:
Tag:
Non-build tags
All tags
No tags
2003-10-20
2003-10-20 13:12:18 by Martin Stjernholm <mast@lysator.liu.se>
688b27501abc69d3d38d128d5f2d71daa54fc430 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
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;