To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=65920
                  Issue #:|65920
                  Summary:|Easy converting OUString to char * for debugging
                          |purposes
                Component:|porting
                  Version:|680m167
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|PATCH
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mh
              Reported by:|kendy





------- Additional comments from [EMAIL PROTECTED] Tue May 30 09:21:23 -0700 
2006 -------
One of the most common (and most annoying ;-) ) construction for debugging is:

rtl::OUString aString;
// ... something with aString
fprintf( stderr, "the value is: %s\n", rtl::OUStringToOString( aString, 
RTL_TEXTENCODING_UTF8 ).getStr() );

And - of course - it is error-prone (if you use aString.getStr(), it will 
compile OK, you just get just the first letter of the string instead of the 
whole content).

I'll attach my proposal of a 'debug()' method which allows

fprintf( stderr, "the value is: %s\n", aString.debug() )

What do you think, please?

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to