GNU bug report logs - #26058
utf16->string and utf32->string don't conform to R6RS

Previous Next

Package: guile;

Reported by: taylanbayirli <at> gmail.com ("Taylan Ulrich Bayırlı/Kammer")

Date: Sat, 11 Mar 2017 12:14:01 UTC

Severity: normal

Full log


Message #8 received at 26058 <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: taylanbayirli <at> gmail.com ("Taylan Ulrich "Bayırlı/Kammer"")
Cc: 26058 <at> debbugs.gnu.org
Subject: Re: bug#26058: utf16->string and utf32->string don't conform to R6RS
Date: Mon, 13 Mar 2017 14:03:14 +0100
On Sat 11 Mar 2017 13:19, taylanbayirli <at> gmail.com ("Taylan Ulrich "Bayırlı/Kammer"") writes:

> See the R6RS Libraries document page 10.  The differences:
>
> - R6RS supports reading a BOM.
>
> - R6RS mandates an endianness argument to specify the behavior at the
>   absence of a BOM.
>
> - R6RS allows an optional third argument 'endianness-mandatory' to
>   explicitly ignore any possible BOM.
>
> Here's a quick patch on top of master.  I didn't test it thoroughly...

Hi,

this is a tricky area that is not so amenable to quick patches :) Have
you looked into what Guile already does for byte-order marks?  Can you
explain how the R6RS specification relates to this?

  https://www.gnu.org/software/guile/manual/html_node/BOM-Handling.html

Andy




This bug report was last modified 6 years and 243 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.