From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 13CB91F55B for ; Fri, 29 May 2020 06:27:15 +0000 (UTC) Received: from localhost ([::1]:34344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeYU5-0000gD-Ra for normalperson@yhbt.net; Fri, 29 May 2020 02:27:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeYU1-0000cT-Ex for bug-gnulib@gnu.org; Fri, 29 May 2020 02:27:09 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162]:26268) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeYTz-0003Ry-Bm; Fri, 29 May 2020 02:27:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1590733623; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=o7e2KvQNOYE/Gx7vmpBcNKJPOqRsjm0/6ZshwqJATm8=; b=AwuxISA82B/r2+kQVBcnwtS68Fx4c31EHyhZnxpQntxxXwxOUeSPwYC+UA3QuKvBs3 f/IGQNFZ2sFoDdHXPHjUwbTnxDh17T05HculhjIa6M47mS/br5xbquVnJWtr7uI++nV6 pWo5chMVIFlUfexkV/kdHAehJaQBnWpW6s8YSzwoY3CeEsnJnz3PYvOgR3gJEYx9Ukvw c764cDgn7UzmbyIJPBlXEe63vxXPVSvKJfwb29y+a7k2MEaCqXkLkaAeGgLS0blhsoDL BWRg76rqPDAtMLnT2VnhBO89nPFz/1RUeZSkSeFlNQt5aU89uH1UotX9IvQb9N1usrgT TyEw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.9.0 DYNA|AUTH) with ESMTPSA id j03713w4T6Q05D7 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Fri, 29 May 2020 08:26:00 +0200 (CEST) From: Bruno Haible To: Daiki Ueno Subject: Re: portability of fopen and 'e' (O_CLOEXEC) flag Date: Fri, 29 May 2020 08:25:58 +0200 Message-ID: <4838618.jViEDvakL2@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <87sgfjfnlv.fsf-ueno@gnu.org> References: <7d7cfa6e-af75-82d0-e076-bf411b87a3ab@gmx.de> <3990195.UIfvkoD8i4@omega> <87sgfjfnlv.fsf-ueno@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.162; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/29 02:27:04 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim =?ISO-8859-1?Q?R=FChsen?= , bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Daiki Ueno wrote: > Afterwards, I realized a > compilation error in the test code on FreeBSD, so I've added the > follow-up patch attached. Indeed, octal and hexadecimal escape sequences are not limited to 3 or 2 digits. ISO C 11 section 6.4.4.4 says: "The hexadecimal digits that follow the backslash and the letter x in a hexadecimal escape sequence are taken to be part of the construction ..." "Each octal or hexadecimal escape sequence is the longest sequence of characters that can constitute the escape sequence." I had forgotten about it too. > "abc\x1adef" One way to write it would be "abc\x1a" "def". Or "abc\032def". Bruno