Hello Roland,

In my Solaris and OpenSolaris systems, for the both files, word counts
return 17 with en_US.UTF-8 locale:

system% uname -a
SunOS s1 5.10 Generic sun4u sparc SUNW,Sun-Blade-1500
system% date
Fri Aug 14 18:54:25 PDT 2009
system% env LC_ALL=en_US.UTF-8 /usr/bin/wc -mwl oneline?
        1      17      75 oneline1
        1      17      59 oneline2
        2      34     134 total
system%

opensolaris% uname -a ; cat /etc/release ; date
SunOS opensolaris 5.11 snv_111b i86pc i386 i86pc Solaris
                          OpenSolaris 2009.06 snv_111b X86
            Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
                         Use is subject to license terms.
                               Assembled 07 May 2009
Fri Aug 14 18:56:43 PDT 2009
opensolaris% env LC_ALL=en_US.UTF-8 /usr/bin/wc -mwl oneline?
        1      17      75 oneline1
        1      17      59 oneline2
        2      34     134 total
opensolaris% env LC_ALL=en_US.UTF-8 /usr/gnu/bin/wc -mwl oneline?
   1  17  75 oneline1
   1  17  59 oneline2
   2  34 134 total
opensolaris%

Was there any specific environment setup that I missed?

Ienup

Roland Mainz wrote at 08/14/09 17:16:
> Hi!
> 
> ----
> 
> [I'ce CC'ed Ienup Sung <Ienup.Sung at Sun.COM> and Masaki Katakai
> <katakai at japan.sun.com> for the i18n parts and Don Cragun
> <dcragun at sonic.net> as standards expert]
> 
> During testing of a new version of the AST "wc" (not the version for
> ksh93-integration update2, this one is a newer one) we hit the issue
> below where two of the testcases show different results for AST "wc",
> GNU coreutils "wc" and Solaris /usr/bin/wc ...
> ... the question is now: What is the expected (from an i18n+standards
> point of view) output for both testcases ?
> 
> -------- Original Message --------
> Subject: wc broken on GNU and Solaris
> Date: Fri, 14 Aug 2009 17:57:14 -0400
> From: David Korn <dgk at research.att.com>
> To: roland.mainz at nrubsig.org
> 
> I have attached two one line files below.
> 
> The file oneline1 when run with the GNU /usr/bin/wc -mwl in
> the en_US.UTF-8 shows 1 word.  The Solaris version shows 17
> which is correct.
> 
> However, for oneline2, the Solaris version shows 32 and the
> Gnu version shows 17 which I believe is correct.
> Ours shows 17 for both.
> 
> ========================================
> 

Reply via email to