Fix regression in handling of data for non-UTF-8 locales
authorJonas Fonseca <fonseca@diku.dk>
Mon, 19 Jan 2009 14:19:54 +0000 (15:19 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Mon, 19 Jan 2009 14:39:04 +0000 (15:39 +0100)
commit495fd0788ecb4aeda6ee3b47fbfc000f70368948
treeb91818f2debdc3d98fcd07fc7b92b2e0424241e2
parent9cb30bba43afa408be71233978a98bd03b468877
Fix regression in handling of data for non-UTF-8 locales

The bug was introduced in 65498141015b6070cf5c9b5704039389dba76e90 where
the the IO API was changed from using stdio to 'raw' file descriptors.
Part of the change removed the need for cutting the ending newline from
the input line in update_view(). This caused the resulting iconv output
buffer to not be NUL terminated since the input string no longer
contained an ending NULL byte.

Reported by Pavel Roskin.
NEWS
tig.c