Append the correct number of null bytes to the end of recoded strings
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Oct 2015 10:08:46 +0000 (12:08 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Oct 2015 10:10:18 +0000 (12:10 +0200)
commit7841b7dc7a33947552866d1cb10916d0eecdeeb6
tree610fe1b43676de041f800d6c389897ba13cef22d
parent232b19c50410590a705a9f4917c20500fb15c100
Append the correct number of null bytes to the end of recoded strings

Previously the recode_string et al functions assumed that the correct way to
terminate a string was to append a single \0.  With encodings such as UTF-16
however, two \0 bytes are necessary and four with UTF-32.  This change fixes
the problem.
src/libpspp/i18n.c