User forums > Help
C::B is not saving the settings
thomas:
--- Quote from: grv575 on January 03, 2006, 12:16:03 pm ---view->layouts->save current?
--- End quote ---
No, look at his screenshot. There is an A-some-unknown-diacritic instead of an i-acute in the pathname, so it fails to open.
I have no idea where that character comes from, though. The patch above replaces the mb_str macro with fn_str() because the documentation says "converts to the format the native filesystem expects". Very likely, it will change nothing at all because it is the same anyway, but it is worth a try.
The location of the home folder is queried from Windows and (along with a few fallback paths) fed to a wxPathList from which the final, fully-qualified filename is returned.
It is unlikely that Windows returns a bad path (even Windows should really know its own paths), so I am afraid it might come from wxPathList. But having no Czech System here, there's no way I could verify that theory.
BlackRose:
Please can you make a "temp" build of C::B with your suggested change and send it to me ? I will test it and we should be immediately sure if it has solved the problem.
thomas:
Hmm... I just noticed that wxString::fn_str() returns wxChar* (which was the reason why I did not use it in the first place, now I remember :?) so that does not compile at all... TinyXML does not accept wchar_t arguments. :(
So... I assume it is a general problem with Unicode filenames... Give me a little time, I'll have to work out a loader which reads in the file and passes the contents to TinyXML in a buffer, this should work. Unluckily that means that I'll have to do the same for saving, again.
When I have it running for me, I'll mail it to you for testing (not tonight any more, though).
BlackRose:
OK, I will wait for it :)
thomas:
--- Quote from: BlackRose on January 04, 2006, 07:05:43 am ---OK, I will wait for it :)
--- End quote ---
I believe it works now...
Tried to mail it to the "centrum" address, but was rejected with the message "illegal attachement". :(
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version