OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000075OMNeT++command line toolspublic2009-06-10 15:342011-05-25 12:40
rhornig 
andras 
highminorhave not tried
resolvedfixed 
4.0 
 
0000075: VS toolchain version is not correctly detected with chinese VS
Compile failure: we found that in the configuruser.vc, a perl script is
used to detect the version of the VS. But if our VS 2005 is chinese version,
the perl script doesn't work well. And so the compile operation will fail.
The perl script was written to detect the version string only on english version. Please provide a a screenshot of the banner comment from the ms compiler. Or suggest an appropriate regexp (look into the opp_msvcver.pl)
No tags attached.
has duplicate 0000117resolved rhornig VC Express 9.0 launch error 
jpg vc9-chinese.jpg (16,431) 2011-05-25 12:37
https://dev.omnetpp.org/bugs/file_download.php?file_id=62&type=bug
jpg
Issue History
2009-06-10 15:34rhornigNew Issue
2009-07-07 21:53andrasNote Added: 0000156
2009-07-07 21:53andrasAssigned To => rhornig
2009-07-07 21:53andrasStatusnew => in work
2009-11-23 14:26rhornigPrioritynormal => high
2011-05-25 12:37andrasFile Added: vc9-chinese.jpg
2011-05-25 12:38andrasAssigned Torhornig => andras
2011-05-25 12:38andrasNote Added: 0000458
2011-05-25 12:40andrasNote Added: 0000459
2011-05-25 12:40andrasStatusin work => resolved
2011-05-25 12:40andrasFixed in Version => 4.2b3
2011-05-25 12:40andrasResolutionopen => fixed
2011-05-25 12:40andrasRelationship addedhas duplicate 0000117

Notes
(0000156)
andras   
2009-07-07 21:53   
Looks like the solution will be to read the version info from the file (cl.exe) itself, using the GetFileVersionInfo() Win32 API. Corresponding opp_pefileversion.cc from ViRe is checked in under src/utils.
(0000458)
andras   
2011-05-25 12:38   
Uploaded screenshot with Chinese version of VC9.
(0000459)
andras   
2011-05-25 12:40   
Reverting to simple solution suggested by Buquan Liu:

src/utils/opp_msvcver.pl:

#if ($logo =~ /Microsoft.*32-bit.*Version ([0-9]+)\./) { #BOGUS
if ($logo =~ /Microsoft.*\s([0-9]+)\./) {
  exit($1);
} else {
  exit(-1);
}