author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 19 Jan 2009 14:19:54 +0000 (15:19 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 19 Jan 2009 14:39:04 +0000 (15:39 +0100) | ||
commit | 495fd0788ecb4aeda6ee3b47fbfc000f70368948 | |
tree | b91818f2debdc3d98fcd07fc7b92b2e0424241e2 | tree | snapshot |
parent | 9cb30bba43afa408be71233978a98bd03b468877 | commit | diff |
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.
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 | diff | blob | history | |
tig.c | diff | blob | history |