[Openmcl-devel] *default-external-format* and encoding and decoding strings.

Dmitry Igrishin dfigrish at gmail.com
Sun Mar 6 13:27:52 PST 2016


> This is a bug in ccl::lookup-character-encoding.  Here’s a patch:
Thanks! Any chance to patch the CCL's source tree with it?

2016-03-05 20:03 GMT+03:00 Ron Garret <ron at flownet.com>:

>
> On Mar 5, 2016, at 8:39 AM, Dmitry Igrishin <dfigrish at gmail.com> wrote:
>
>
>
> 2016-03-05 16:25 GMT+03:00 Dmitry Igrishin <dfigrish at gmail.com>:
>
>> Hello,
>>
>> The *default-external-parameter* doesn't considered by
>> count-characters-in-octet-vector, decode-string-from-octets,
>> encode-string-to-octets, string-size-in-octets functions which
>> has the :external-format parameter. I believe that
>> *default-external-parameter* should affect the behaviour of
>> all functions with :external-format parameter, right?
>>
> Sorry, I meant the *default-external-format* special variable...
>
>
> This is a bug in ccl::lookup-character-encoding.  Here’s a patch:
>
> (in-package :ccl)
>
> (let ((ccl::*warn-if-redefine-kernel* nil))
>   (defun lookup-character-encoding (name)
>     (gethash (or name *default-external-format*) *character-encodings*)))
>
> rg
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20160307/f9b0f289/attachment.htm>


More information about the Openmcl-devel mailing list