After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 351894 - PATCH: Glib::ustring documentation unclear
PATCH: Glib::ustring documentation unclear
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: documentation
2.11.x
Other All
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-08-18 10:04 UTC by Ralf Stephan
Modified: 2006-09-19 20:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fixes described documentation error (761 bytes, text/plain)
2006-08-18 10:06 UTC, Ralf Stephan
Details

Description Ralf Stephan 2006-08-18 10:04:23 UTC
Documentation 
Section: doxygen
For the constructors ustring (const ustring&, size_t, size_t n) and ustring (const char*, size_t n) the doc says for parameter n: "Number of characters to copy...". This is misleading in the 2nd case, as in both cases these are UTF8 characters. I had an unexplained std::length_error because of this misunderstanding.

Correct version:
"Number of UTF8 characters to copy..."

Other information:
Comment 1 Ralf Stephan 2006-08-18 10:06:10 UTC
Created attachment 71134 [details]
fixes described documentation error

changes "Number of characters..." to "Number of UTF8 characters..." in two cases
Comment 2 Murray Cumming 2006-09-19 20:47:53 UTC
Committed to glibmm HEAD, but using "UTF-8" rather than "UTF8", for consistency. 

Please remember to patch the ChangeLog in future, and create a cvs diff if you can, as per the instructions on gtkmm.org. Thanks.