]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
The attached patch converts the given string to UTF-8 using glib's
authorTobias Oetiker <tobi@oetiker.ch>
Mon, 4 Aug 2008 20:35:45 +0000 (20:35 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 4 Aug 2008 20:35:45 +0000 (20:35 +0000)
commit7ac4f114426d5d32315ebf65708eb4fe9ffb4759
tree6fb9cd701f9ee79949bb09ec4ad8b0e4389424de
parentef178bab66d1e4dfa860e96d60c4ce0171461533
The attached patch converts the given string to UTF-8 using glib's
g_locale_to_utf8() function. This function expects the string to be
encoded as specified by the locale settings, so this will fail if e.g.
you're using some script which is encoded in some way incompatible to
the locale settings. In this case, the patch falls back to use the
original string as provided by the user as there is no way to tell how
to interpret that string. So, in this case, you will still get the old
behavior (that pango warning and messed up strings in the graph).
However, imho this is perfectly fine since it should be up to the user
to take care of a sane environment. -- Sebastian Harl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1457 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_gfx.c