summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2009-11-16 12:16:05 -0500
committerKen Raeburn <raeburn@raeburn.org>2009-12-17 20:02:35 -0500
commit6751d6db6bdf3303b82dd184249e570930a6c561 (patch)
treec66a95c7ccd00b07aa6c74074a68ad9e335ea272
parent72b3aa56afc776506a0b51c008c808a536a4f1c3 (diff)
downloadguile-6751d6db6bdf3303b82dd184249e570930a6c561.tar.gz
Allow more characters in coding system names in Emacs-style declarations.
* libguile/read.c (scm_i_scan_for_encoding): Allow more punctuation symbols in coding system names.
-rw-r--r--libguile/read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libguile/read.c b/libguile/read.c
index f085944be..63880841c 100644
--- a/libguile/read.c
+++ b/libguile/read.c
@@ -1515,8 +1515,7 @@ scm_i_scan_for_encoding (SCM port)
i = 0;
while (pos + i - header <= SCM_ENCODING_SEARCH_SIZE
&& pos + i - header < bytes_read
- && (isalnum((int) pos[i]) || pos[i] == '_' || pos[i] == '-'
- || pos[i] == '.'))
+ && (isalnum ((int) pos[i]) || strchr ("_-.:/,+=()", pos[i]) != NULL))
i++;
if (i == 0)