GNU bug report logs - #78885
[PATCH] maint: assume that compilers support '\a' as specified by C89

Previous Next

Package: sed;

Reported by: Collin Funk <collin.funk1 <at> gmail.com>

Date: Tue, 24 Jun 2025 04:45:02 UTC

Severity: normal

Tags: fixed, patch

Done: Collin Funk <collin.funk1 <at> gmail.com>

Full log


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

From: Jim Meyering <jim <at> meyering.net>
To: Collin Funk <collin.funk1 <at> gmail.com>
Cc: 78885 <at> debbugs.gnu.org
Subject: Re: bug#78885: [PATCH] maint: assume that compilers support '\a' as
 specified by C89
Date: Thu, 26 Jun 2025 16:03:50 -0700
On Mon, Jun 23, 2025 at 9:45 PM Collin Funk <collin.funk1 <at> gmail.com> wrote:
> I noticed some very old code:
>
>     #if defined __STDC__ && __STDC__-0
>                case 'a': *q++ = '\a'; p++; continue;
>     #else /* Not STDC; we'll just assume ASCII */
>               case 'a': *q++ = '\007'; p++; continue;
>     #endif
>
> This is from before C89 when '\a' was standardized. In sed/debug.c and
> in Gnulib we already assume it is supported. So the fallback code can be
> removed.
>
> And if compilers don't support it, they most certainly have other larger
> problems than this. :)

Very old, indeed. Thanks. Applied.




This bug report was last modified 20 days ago.

Previous Next


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