Ticket #80 (closed defect: wontfix)
WideCharToMultiByte not respecting regional settings?
|Reported by:||jbirch||Owned by:|
This was just reported on the mailing list:
I found finally what the problem is and the solution. Exception was raised when trying to set the scale bar in the print layout. It's all about Regional Settings. My computer has default French regional settings applied and the group symbol is set to blank. So, a scale number like 98765 is converted as 98 765. Because of this MgUtil.WideCharToMultiByte try to do conversion and fails. Changing this parameter (set ',' instead of blank) allows print correctly. Paco. Paco Alvarez wrote: > > Hi all, > > I'm trying to print using the print layout with DWF viewer. > The layout is the default one generated by the Studio and validated. > > When I try print preview I get an error : 559 > MgInvalidArgumentException From the log file I find this : > > Error: Invalid argument(s): >  = "const string&" > The string is invalid and cannot be converted. > StackTrace: > - MgMappingServiceHandler.ProcessOperation line 81 file > c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\mapping\MappingServiceHandler.cpp > - MgOpGeneratePlot.Execute line 182 file > c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\mapping\OpGeneratePlot.cpp > - MgServerMappingService.GeneratePlot line 831 file > c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\mapping\ServerMappingService.cpp > - MgServerMappingService.GenerateMultiPlot line 1230 file > c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\mapping\ServerMappingService.cpp > - MgUtil.WideCharToMultiByte line 297 file .\System\Util.cpp Invalid > argument(s): >  = "const string&" > The string is invalid and cannot be converted. > > The Server version is : 22.214.171.1241
Note: See TracTickets for help on using tickets.