I don't believe that set_locale() is the culprit. I think when uploading a map the SDL is initialized through the browser and when trying to do it manually on the server it fails. This happens also with wl_map_info when trying to use it in console on the server ( i uploaded the map "Crossing the Horizon.wmf" for the test):
$ wl_map_info Crossing\ the\ Horizon.wmf Exception: [/build/widelands-x6lppq/widelands-18-ppa0-bzr8009/src/website/map_info.cc:47] Unable to initialize SDL: Failed to connect to the Mir Server. Remember: When i upload a map over the website, all is fine. Either we find another way to parse the widelands configs, or we create a view for updating the encyclopedia so that the SDL is initialized through the browser. I would prefer the first solution... or we create an SDL independent way for widelands website related stuff (parsing maps and configs). It would be interesting if wl_zocker could upload a map, because of the bugs which affects him. And to verify my assumption. -- https://code.launchpad.net/~widelands-dev/widelands-website/encyclopedia/+merge/287410 Your team Widelands Developers is subscribed to branch lp:widelands-website. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp