Problem 862 - vrml export pv_name contains null characters
Summary: vrml export pv_name contains null characters
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: visualization/VRML (show other problems)
Version: other
Hardware: All All
: P2 normal
Assignee: perl
URL:
Depends on:
Blocks:
 
Reported: 2006-04-20 14:25 CEST by alex.stewart
Modified: 2009-11-25 06:38 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description alex.stewart 2006-04-20 14:25:33 CEST
I maintain a vrml/x3d browser for Linux/Unix. A user submitted a vrml file
generated by geant. It contains many lines like:

#---------- SOLID: av_1_impr_1_/t2k/OA/Magnet/LeftClam/CoilTopFrontBend_pv_0^@.1

where the "^@" is actually a null character. (0x00 in hexadecimal)

Null characters are used in Unix (OSX, Linux) to signify end of string.

I suggest changing the code to remove this null character. It affects the
way FreeWRL operates, and it may also affect the way other programs
interpret the output of Geant4.

John Stewart
CRC Canada
http://www.crc.ca/FreeWRL
Comment 1 perl 2009-11-25 06:38:14 CET
Was resolved in 2006