aboutsummaryrefslogtreecommitdiff
path: root/gcc/cobol/show_parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cobol/show_parse.h')
-rw-r--r--gcc/cobol/show_parse.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cobol/show_parse.h b/gcc/cobol/show_parse.h
index e1a8cb2..7945e90 100644
--- a/gcc/cobol/show_parse.h
+++ b/gcc/cobol/show_parse.h
@@ -140,7 +140,13 @@ extern bool cursor_at_sol;
fprintf(stderr, "%s", (b).field->name); \
if( (b).field->type == FldLiteralA || (b).field->type == FldLiteralN ) \
{ \
- fprintf(stderr, " \"%s\"", (b).field->data.initial); \
+ size_t nbytes; \
+ const char *literal = __gg__iconverter((b).field->codeset.encoding, \
+ DEFAULT_SOURCE_ENCODING, \
+ (b).field->data.initial, \
+ strlen((b).field->data.initial), \
+ &nbytes); \
+ fprintf(stderr, " \"%s\"", literal); \
} \
else \
{ \