Bug 1866 - program.c:get_line() is not wide filename safe.
: program.c:get_line() is not wide filename safe.
Status: RESOLVED FIXED
: Pike
Core
: 7.3
: All Other
: P3 (normal) minor
: ---
Assigned To:
:
:
:
  Show dependency treegraph
 
Reported: 2001-07-12 19:25 CET by
Modified: 2001-07-13 13:27 CET (History)
Scrum Prio:
In scrum?: ---
Story included in sprints:
Unplanned in sprints:


Attachments


Description From 2001-07-12 19:25:53 CET
program.c:get_line() returns a NUL-terminated char *, which will fail to
represent a wide filename correctly:

> object o = compile_string("void foo(){ error(\"Foo!\\n\"); }",
"\x4141")();
Result: object
>
o->foo();
Foo!
AA:1: foo()
-:1: ___Foo4711()

The string width information is probably lost by store_linenumber().
------- Comment #1 From 2001-07-13 13:28:09 CET -------
Fixed in Pike 7.3.

Note

You need to log in before you can comment on or make changes to this bug.