[mapguide-trac] #80: WideCharToMultiByte not respecting regional settings?

MapGuide Open Source trac_mapguide at osgeo.org
Tue Apr 24 11:56:23 EDT 2007


#80: WideCharToMultiByte not respecting regional settings?
-----------------------+----------------------------------------------------
   Reporter:  jbirch   |       Owner:       
       Type:  defect   |      Status:  new  
   Priority:  medium   |   Milestone:       
  Component:  General  |     Version:  1.1.0
   Severity:  major    |    Keywords:       
External_id:           |  
-----------------------+----------------------------------------------------
 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):
  >              [1] = "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):
  >      [1] = "const string&"
  > The string is invalid and cannot be converted.
  >
  > The Server version is : 1.1.0.301

 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/80>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list