Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!aurora!labrea!decwrl!pyramid!prls!philabs!micomvax!ray From: ray@micomvax.UUCP (Ray Dunn) Newsgroups: comp.lang.c Subject: Re: Hex escapes in strings Message-ID: <886@micomvax.UUCP> Date: 18 Jan 88 23:51:35 GMT References: <2938@zeus.TEK.COM> <7021@brl-smoke.ARPA> Reply-To: ray@micomvax.UUCP (Ray Dunn) Organization: Philips Information Systems - St. Laurent P.Q., Canada Lines: 25 Posted: Mon Jan 18 18:51:35 1988 In article <7021@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: > >Note that long hex escapes are intended for non-portable usage, >primarily in multi-byte character set environments, although they >are useful on unusual architectures having chars > 8 bits. > I was going to try to make this reponse witty, but it's too late in the day.. This Doug, seems to me either idiocy or arrogance, someone please tell me which, or is the above statement included in the Semantics section of the description of hex escapes in string constants, so I can ensure I'm using them as the committee intended. The unfortunate thing is, string constants are not just used for messages etc, but as arrays of 8-bit data. These often contain hex constants. These hex constants are often followed by hex digits. So, not only do we have a major existing code breaking problem, but also another example of the verbosity being added to C (having to concatenate strings to avoid the hex problem). We can write "ABC\x12H... but must remember to write "ABC\x12""F... Great! What is the expression about being committee'd to death? Ray Dunn. ..philabs!micomvax!ray