Opened 4 years ago

Last modified 3 years ago

#6124 new defect

Special characters inide info.json

Reported by: AnHeuermann Owned by: sjoelund.se
Priority: high Milestone:
Component: Code Generation Version: v1.16.0-dev
Keywords: json Cc:

Description

When simulating a model in a path with a special character the path will not be stored correctly in the info.json.

For example a file test.mo in directory /some/Path/specialChars/söWhät will be saved as "file":"/some/Path/specialChars/s\uffffffc3\uffffffb6Wh\uffffffc3\uffffffa4t/test.mo"

The full info.json file:

{"format":"Transformational debugger info","version":1,
"info":{"name":"ChatteringEvents1","description":"Exhibits chattering after t = 0.5, with generated events"},
"variables":{
"x":{"comment":"","kind":"state","type":"Real","unit":"","displayUnit":"","source":{"info":{"file":"/home/aheuermann1/workspace/Testitesttest/specialChars/s\uffffffc3\uffffffb6Wh\uffffffc3\uffffffa4t/test.mo","lineStart":3,"lineEnd":3,"colStart":3,"colEnd":30}}},
"der(x)":{"comment":"","kind":"derivative","type":"Real","unit":"","displayUnit":"","source":{"info":{"file":"/home/aheuermann1/workspace/Testitesttest/specialChars/s\uffffffc3\uffffffb6Wh\uffffffc3\uffffffa4t/test.mo","lineStart":3,"lineEnd":3,"colStart":3,"colEnd":30}}},
"y":{"comment":"","kind":"variable","type":"Real","unit":"","displayUnit":"","source":{"info":{"file":"/home/aheuermann1/workspace/Testitesttest/specialChars/s\uffffffc3\uffffffb6Wh\uffffffc3\uffffffa4t/test.mo","lineStart":4,"lineEnd":4,"colStart":3,"colEnd":9}}}
},
"equations":[{"eqIndex":0,"tag":"dummy"},
{"eqIndex":1,"section":"initial","tag":"assign","defines":["x"],"uses":["$START.x"],"equation":["$START.x"],"source":{"info":{"file":"","lineStart":0,"lineEnd":0,"colStart":0,"colEnd":0}}},
{"eqIndex":2,"tag":"alias","equation":[5],"section":"initial"},
{"eqIndex":3,"tag":"alias","equation":[6],"section":"initial"},
{"eqIndex":4,"tag":"alias","equation":[7],"section":"initial"},
{"eqIndex":5,"section":"regular","tag":"assign","defines":["z"],"uses":["x"],"equation":["if x > 0.0 then -1.0 else 1.0"],"source":{"info":{"file":"/home/aheuermann1/workspace/Testitesttest/specialChars/s\uffffffc3\uffffffb6Wh\uffffffc3\uffffffa4t/test.mo","lineStart":7,"lineEnd":7,"colStart":3,"colEnd":30}}},
{"eqIndex":6,"section":"regular","tag":"assign","defines":["y"],"uses":["z"],"equation":["2.0 * z"],"source":{"info":{"file":"/home/aheuermann1/workspace/Testitesttest/specialChars/s\uffffffc3\uffffffb6Wh\uffffffc3\uffffffa4t/test.mo","lineStart":8,"lineEnd":8,"colStart":3,"colEnd":10}}},
{"eqIndex":7,"section":"regular","tag":"assign","defines":["der(x)"],"uses":["y"],"equation":["y"],"source":{"info":{"file":"/home/aheuermann1/workspace/Testitesttest/specialChars/s\uffffffc3\uffffffb6Wh\uffffffc3\uffffffa4t/test.mo","lineStart":9,"lineEnd":9,"colStart":3,"colEnd":13}}}
],
"functions":[
]
}

Change History (3)

comment:1 Changed 4 years ago by AnHeuermann

  • Milestone changed from Future to 1.17.0

comment:2 Changed 3 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:3 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.