From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23591 invoked by alias); 30 Nov 2001 18:24:13 -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 23559 invoked from network); 30 Nov 2001 18:24:08 -0000 Received: from unknown (HELO mail-out1.apple.com) (17.254.0.52) by hostedprojects.ges.redhat.com with SMTP; 30 Nov 2001 18:24:08 -0000 Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225]) by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id fAUIO7u25767 for ; Fri, 30 Nov 2001 10:24:07 -0800 (PST) Received: from scv3.apple.com (scv3.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Fri, 30 Nov 2001 10:24:05 -0800 Received: from johada (johada.apple.com [17.202.41.77]) by scv3.apple.com (8.11.3/8.11.3) with ESMTP id fAUIO4D28226; Fri, 30 Nov 2001 10:24:04 -0800 (PST) Date: Fri, 23 Nov 2001 11:04: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 , Guillaume , Joe Buck , gcc@gcc.gnu.org To: Florian Krohm From: Dale Johannesen In-Reply-To: <01113013120701.01459@warp9.fishkill.ibm.com> Message-Id: <6F64E8B2-E5BF-11D5-9EC7-003065C86F94@apple.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.472) X-SW-Source: 2001-11/txt/msg01130.txt.bz2 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dale Johannesen To: Florian Krohm Cc: Dale Johannesen , Guillaume , Joe Buck , gcc@gcc.gnu.org Subject: Re: fdump-ast-original and strg: Date: Fri, 30 Nov 2001 10:24:00 -0000 Message-ID: <6F64E8B2-E5BF-11D5-9EC7-003065C86F94@apple.com> References: <01113013120701.01459@warp9.fishkill.ibm.com> X-SW-Source: 2001-11/msg01631.html Message-ID: <20011130102400.irVh7gIAzBgq6ESLd6vjVTMAiar5VuDk3YqAOPTVd4U@z> 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.