[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: propagating a coding setting across source files
From: |
Mike Gran |
Subject: |
Re: propagating a coding setting across source files |
Date: |
Fri, 2 Dec 2011 06:23:55 -0800 (PST) |
>Not when loading a file with Latin-1 characters:
>
>> cat aa.scm
>(define c #\ä)
>
>> guile
>GNU Guile 2.0.3
>...
>scheme@(guile-user)> (load "aa.scm")
>;;; compiling /home/s/aa.scm
>;;; WARNING: compilation of /home/s/aa.scm failed:
>;;; ERROR: In procedure scm_lreadr: /home/s/aa.scm:1:13: unknown character
>name
>ERROR: In procedure primitive-load:
>ERROR: In procedure scm_lreadr: /home/s/aa.scm:1:13: unknown character name
I guess you're right. Looks like, at some point, the default for files with
no 'coding:' line got hard set to UTF-8 in 'scm_primitive_load' and
'compile-file'
and friends.
At first, I thought you could do something with %load-hook, or by setting
the %default-port-encoding, but that isn't going to work either.
No workaround is obvious to me. Hrm. Unfortunate.
-Mike