summaryrefslogtreecommitdiff
path: root/libguile/script.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-01-17 18:18:41 +0100
committerLudovic Courtès <ludo@gnu.org>2014-01-17 18:18:41 +0100
commit3ff8a9d6ff9c8b9f3be7c03b624b3042bb61079f (patch)
treecb1a10d7e00265489058baac1e0414c611e18e2a /libguile/script.c
parent802a25b1ed5c738aa5f9d3d01f33eb89b22afd1b (diff)
downloadguile-3ff8a9d6ff9c8b9f3be7c03b624b3042bb61079f.tar.gz
Arrange so that 'file-encoding' does not truncate the encoding name.
Fixes <http://bugs.gnu.org/16463>. Reported by Sree Harsha Totakura <sreeharsha@totakura.in>. * libguile/read.c (ENCODING_NAME_MAX_SIZE): New macro. (SCM_ENCODING_SEARCH_SIZE): Change to 500 + ENCODING_NAME_MAX_SIZE. (scm_i_scan_for_encoding): Return NULL if there's less than ENCODING_NAME_MAX_SIZE bytes once "coding: *" has been read. * test-suite/tests/coding.test ("line comment")["http://bugs.gnu.org/16463"]: New test.
Diffstat (limited to 'libguile/script.c')
0 files changed, 0 insertions, 0 deletions