Re: [Crystal-cvs] SF.net SVN: crystal:[39248] CSEditing/trunk

res <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <trinity-bdd79f1e-be61-4f14-b98f-23ce0c2a553f-1364223829699@3capp-gmx-bs41>
Note that you should pass UTF-8 encoded strings into ReportError() and thus Quote::Single().

You can't generally rely on mb_str() being UTF-8 encoded. (E.g. on Windows it's likely the local ANSI 8-bit encoding.)

-f.r.

Modified: CSEditing/trunk/libs/cseditor/modifiableeditor.cpp

===================================================================

--- CSEditing/trunk/libs/cseditor/modifiableeditor.cpp 2013-03-25 04:17:03 UTC (rev 39247)

+++ CSEditing/trunk/libs/cseditor/modifiableeditor.cpp 2013-03-25 13:42:10 UTC (rev 39248)

@@ -520,10 +520,7 @@

if (page->GetProperty (label))

page->SetPropertyHelpString (label, description);

- else {

- // Needed in order to print out the wide char type from GetData

- wprintf (wxT ("Couldn't find property with name: %s \n"), label.GetData ());

- }

+ else ReportError ("Couldn't find property with name: %s", CS::Quote::Single (label.mb_str ()));

}

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar

_______________________________________________
Crystal-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.