#1485: Cannot save workspace from wxGUI -------------------------+-------------------------------------------------- Reporter: venkat | Owner: grass-dev@… Type: defect | Status: new Priority: blocker | Milestone: 6.4.2 Component: wxGUI | Version: 6.4.2 RCs Keywords: wingrass | Platform: MSWindows 7 Cpu: Unspecified | -------------------------+--------------------------------------------------
Comment(by naokiueda): I'd like to also add this fix in 6.4.0. Base source code is 6.4.0 RC6 I think porting fixes above and below can solve this ticket issue and #1380. GRASS used to handle double byte characters before.. [[BR]] Before:[[BR]] def GetCommandInputMapParamKey(self, cmd):[[BR]] """Get parameter key for input raster/vector map[[BR]] [[BR]] @param cmd module name[[BR]] [[BR]] @return parameter key[[BR]] @return None on failure[[BR]] """[[BR]] # parse the interface decription[[BR]] if not self.grass_task:[[BR]] self.grass_task = grassTask()[[BR]] handler = processTask(self.grass_task)[[BR]] [[BR]] xml.sax.parseString(getInterfaceDescription(cmd), handler)[[BR]] [[BR]] [[BR]] After Fix:[[BR]] def GetCommandInputMapParamKey(self, cmd):[[BR]] """Get parameter key for input raster/vector map[[BR]] [[BR]] @param cmd module name[[BR]] [[BR]] @return parameter key[[BR]] @return None on failure[[BR]] """[[BR]] # parse the interface decription[[BR]] if not self.grass_task:[[BR]] self.grass_task = grassTask()[[BR]] handler = processTask(self.grass_task)[[BR]] [[BR]] # xml.sax.parseString(getInterfaceDescription(cmd), handler)[[BR]] enc = locale.getdefaultlocale()[1][[BR]] if enc and enc.lower() not in ("utf8", "utf-8"):[[BR]] xml.sax.parseString(getInterfaceDescription(cmd).decode(enc).split('\n',1)[1].replace('', '<?xml version="1.0" encoding="utf-8"?>\n', 1).encode("utf-8"),[[BR]] handler)[[BR]] else:[[BR]] xml.sax.parseString(getInterfaceDescription(cmd),[[BR]] handler)[[BR]] -- Ticket URL: <http://trac.osgeo.org/grass/ticket/1485#comment:10> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev