From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10510 invoked by alias); 30 Nov 2001 23:02:15 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 10436 invoked from network); 30 Nov 2001 23:02:10 -0000 Received: from unknown (HELO mail-out1.apple.com) (17.254.0.52) by hostedprojects.ges.redhat.com with SMTP; 30 Nov 2001 23:02:10 -0000 Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id fAUN2Au15430 for ; Fri, 30 Nov 2001 15:02:10 -0800 (PST) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Fri, 30 Nov 2001 15:01:45 -0800 Received: from johada (johada.apple.com [17.202.41.77]) by scv1.apple.com (8.11.3/8.11.3) with ESMTP id fAUN1xe17516; Fri, 30 Nov 2001 15:01:59 -0800 (PST) Date: Fri, 23 Nov 2001 18:26:00 -0000 Subject: Re: fdump-ast-original and strg: Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v472) Cc: Dale Johannesen , Florian Krohm , Guillaume , Joe Buck , gcc@gcc.gnu.org To: tim@hollebeek.com From: Dale Johannesen In-Reply-To: <20011130180715.A25698@cj44686-b.reston1.va.home.com> Message-Id: <41B3E84C-E5E6-11D5-9EC7-003065C86F94@apple.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.472) X-SW-Source: 2001-11/txt/msg01150.txt.bz2 On Friday, November 30, 2001, at 03:07 PM, Tim Hollebeek wrote: > >> On Friday, November 30, 2001, at 10:12 AM, Florian Krohm wrote: >> >>> I'm afraid, things are even a bit more complex. >>> Consider a string containing two characters, the first >>> of which contains the bit pattern 00001010. The second >>> character is '2'. If you want to recover the original >>> representation for that string you will have to use a >>> string concatenation e.g. "\12" "2" or "\x6" "2". >>> Note that you cannot write "\122" as that would specify >>> only a single character. >> >> "\0122" works. > > I believe you can also use "\12\2". No, that specifies a second character with bit pattern 00000010, which is not '2'. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dale Johannesen To: tim@hollebeek.com Cc: Dale Johannesen , Florian Krohm , Guillaume , Joe Buck , gcc@gcc.gnu.org Subject: Re: fdump-ast-original and strg: Date: Fri, 30 Nov 2001 15:02:00 -0000 Message-ID: <41B3E84C-E5E6-11D5-9EC7-003065C86F94@apple.com> References: <20011130180715.A25698@cj44686-b.reston1.va.home.com> X-SW-Source: 2001-11/msg01651.html Message-ID: <20011130150200.Wcr1Vz8AK5RY2R-6eSXVFOZ2mTKFsRYKP0WKqmo3qc4@z> On Friday, November 30, 2001, at 03:07 PM, Tim Hollebeek wrote: > >> On Friday, November 30, 2001, at 10:12 AM, Florian Krohm wrote: >> >>> I'm afraid, things are even a bit more complex. >>> Consider a string containing two characters, the first >>> of which contains the bit pattern 00001010. The second >>> character is '2'. If you want to recover the original >>> representation for that string you will have to use a >>> string concatenation e.g. "\12" "2" or "\x6" "2". >>> Note that you cannot write "\122" as that would specify >>> only a single character. >> >> "\0122" works. > > I believe you can also use "\12\2". No, that specifies a second character with bit pattern 00000010, which is not '2'.