git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git latest master: a6828f536119c3288b0be772e3870f1a464d017d -- error in t0050-filesystem.sh on Solaris

From
Jeff King <peff@peff.net>
Date
Mar 12, 2008, 14:53 UTC
Message-ID
<20080312145333.GA11236@coredump.intra.peff.net>
In-Reply-To
<8ec76080803120649h587b1933x6ec513d4b51a29a9@mail.gmail.com>
On Wed, Mar 12, 2008 at 09:49:25AM -0400, Whit Armstrong wrote:
Show 12 quoted lines
> xs5-trd-p1.grn:warmstro> uname -a
> SunOS xs5-trd-p1.grn.tudor.com 5.9 Generic_118558-38 sun4u sparc
> SUNW,Sun-Fire-V240 Solaris
> 
> the Unrecognized switch: -O is from the perl call:
> 
> ++ perl -CO -e 'print pack("U",0x00E4)'
> Unrecognized switch: -O  (-h will show valid options).
> + auml=
> ++ perl -CO -e 'print pack("U",0x0061).pack("U",0x0308)'
> Unrecognized switch: -O  (-h will show valid options).
> + aumlcdiar=

Yes, perl 5.005 doesn't understand -CO. You can replace that with "binmode STDOUT, ':utf8'", but then you will find that it also doesn't understand "U" as a pack specifier. :)

While the perl code nicely shows what is going on, perhaps it would be simpler to just do something like:

  auml=`printf '\xc3\xa4'`
(which is the output that the perl gives on my Linux system).
-Peff
Previous: Whit Armstrong
Message 2 of 2 in “git latest master: a6828f536119c3288b0be772e3870f1a464d017d -- error in t0050-filesystem.sh on Solaris”
  1. Whit ArmstrongMar 12, 2008
  2. Jeff KingMar 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.