GNOME Bugzilla – Bug 351894
PATCH: Glib::ustring documentation unclear
Last modified: 2006-09-19 20:47:53 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:
Created attachment 71134 [details] fixes described documentation error changes "Number of characters..." to "Number of UTF8 characters..." in two cases
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.