Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
debuging C::B
Biplab:
--- Quote from: roshi on October 27, 2007, 04:52:52 pm ---Yes that is the revision that I'm using.
--- End quote ---
If possible, please attach the source file as a zip/7z file. It will help us track down any encoding related bugs. :)
roshi:
No problem.
It looks like only 1 char is problematic...
If you can't open the file say it. I'll create a different one.
Good bug hunt.
[attachment deleted by admin]
Biplab:
--- Quote from: roshi on October 27, 2007, 07:34:27 pm ---No problem.
It looks like only 1 char is problematic...
If you can't open the file say it. I'll create a different one.
Good bug hunt.
--- End quote ---
The problem is that the file is a plain ascii file. The encoding detection correctly detects that it's Not an UTF-8 file. But the fallback code sets the encoding to System Default, which is UTF-8 for Linux. And the problem starts there. wxWidgets conversion routine fails there and the fallback code also tries convert the file, again, to UTF-8. That particular character is malformed as per UTF-8.
I reverted this code in two revision back which resets to system default. But I think I should make a re-revert of that. I think I can rely on the utf-8 detection code. ;)
I've committed a fix in revision 4565 which should solve your problem.
I'll add some messages to it so that it can inform us when such conversion fails. :)
roshi:
Good work :D
Navigation
[0] Message Index
[*] Previous page
Go to full version