upgrade to latest swi

This commit is contained in:
Vitor Santos Costa
2013-11-15 01:10:25 +00:00
parent 5b46b6bd1a
commit 4e4f21e1dc
49 changed files with 6726 additions and 3043 deletions

View File

@@ -280,9 +280,12 @@ PL_get_text__LD(term_t l, PL_chars_t *text, int flags ARG_LD)
encodings[1] = ENC_WCHAR;
encodings[2] = ENC_UNKNOWN;
wflags = ((flags&CVT_WRITE_CANONICAL)
? PL_WRT_QUOTED|PL_WRT_IGNOREOPS|PL_WRT_NUMBERVARS
: PL_WRT_NUMBERVARS);
if ( (flags&CVT_WRITEQ) == CVT_WRITEQ )
wflags = PL_WRT_QUOTED|PL_WRT_NUMBERVARS;
else if ( (flags&CVT_WRITE_CANONICAL) )
wflags = PL_WRT_QUOTED|PL_WRT_IGNOREOPS|PL_WRT_NUMBERVARS;
else
wflags = PL_WRT_NUMBERVARS;
for(enc = encodings; *enc != ENC_UNKNOWN; enc++)
{ size_t size;