iconv: outsource code into it's own file
authorPhil Sutter <phil@nwl.cc>
Sat, 3 Oct 2009 18:01:33 +0000 (20:01 +0200)
committerPhil Sutter <phil@nwl.cc>
Sun, 4 Oct 2009 01:41:45 +0000 (03:41 +0200)
commit1e893ec6e3e6584ce6a7a2a9b209d4a075162ec8
tree1c6bad7eff8c73b997380568dc45b59c204eab0c
parentadf9d23927e7ef3244c2eb093f7aab8b8c391480
iconv: outsource code into it's own file

While testing, I found two already existing bugs:
* the variable 'a' passed to iconv_convert() needs to be passed by
  reference in order to allow for the desired side effect.
* Somehow the trailing junk after an iconv_conversion to a shorter
  string messes things up (and gets printed!). I couldn't exactly find
  out why this happens, but setting (*p) = 0; solves this problem.
configure.ac.in
src/Makefile.am
src/conky.c
src/core.c
src/core.h
src/iconv_tools.c [new file with mode: 0644]
src/iconv_tools.h [new file with mode: 0644]