Bag LANG setting?

Jason Pyeron jpyeron@pdinc.us
Thu Jan 14 19:52:00 GMT 2010


When doing man grep it blurted out many <##> hex codes. If I unset LANG, LANGVAR I get extended ascii. I am using teraterm to connect via ssh.

LANG=en_US.iso885915
LANGVAR=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
TERM=vt100

When using the same setting on RHEL4, the output seems proper.

I cannot remember when the man output was last formatted correctly. Any advise on where to check next?

$ uname -a
CYGWIN_NT-5.1 phoenix 1.7.0(0.212/5/3) 2009-08-20 10:56 i686 Cygwin


========================================================================

GREP(1)                                                   User Commands                                                   GREP(1)

NAME
       grep, egrep, fgrep <E2><88><92> print lines matching a pattern

SYNOPSIS
       grep [OPTIONS] PATTERN [FILE...]
       grep [OPTIONS] [<E2><88><92>^H<E2><88><92>e PATTERN | <E2><88><92>^H<E2><88><92>f FILE] [FILE...]

DESCRIPTION
       grep  searches the named input FILEs (or standard input if no files are named, or if a single hyphen<E2><80><90>minus (<E2><88><92>^H<E2>ˆ88><92>) is given as
       file name) for lines containing a match to the given PATTERN.  By default, grep prints the matching lines.

       In addition, two variant programs egrep and fgrep are available.  egrep is the same as grep <E2><88><92>^H<E2><88><92>E.   fgrep  is  the  same  as
       grep <E2><88><92>^H<E2><88><92>F.   Direct invocation as either egrep or fgrep is deprecated, but is provided to allow historical applications that
       rely on them to run unmodified.

OPTIONS
   Generic Program Information
       <E2><88><92>^H<E2><88><92><E2><88><92>^H<E2><88><92>help Print a usage message briefly summarizing these command<E2><80><90>line options and the bug<E2><80><90>reporting address, then exit.

       <E2><88><92>^H<E2><88><92>V, <E2><88><92>^H<E2><88><92><E2><88><92>^H<E2><88><92>version
              Print the version number of grep to the standard output stream.  This version number should be included in all  bug
              reports (see below).


========================================================================

GREP(1)                                                   User Commands                                                   GREP(1)

NAME
       grep, egrep, fgrep − print lines matching a pattern

SYNOPSIS
       grep [OPTIONS] PATTERN [FILE...]
       grep [OPTIONS] [−e PATTERN | −f FILE] [FILE...]

DESCRIPTION
       grep  searches the named input FILEs (or standard input if no files are named, or if a single hyphen‐minus (−) is given as
       file name) for lines containing a match to the given PATTERN.  By default, grep prints the matching lines.

       In addition, two variant programs egrep and fgrep are available.  egrep is the same as grep −E.   fgrep  is  the  same  as
       grep −F.   Direct invocation as either egrep or fgrep is deprecated, but is provided to allow historical applications that
       rely on them to run unmodified.

OPTIONS
   Generic Program Information
       −−help Print a usage message briefly summarizing these command‐line options and the bug‐reporting address, then exit.

       −V, −−version
              Print the version number of grep to the standard output stream.  This version number should be included in all  bug
              reports (see below).

   Matcher Selection
       −E, −−extended−regexp
              Interpret PATTERN as an extended regular expression (ERE, see below).  (−E is specified by POSIX.)

       −F, −−fixed−strings
              Interpret  PATTERN  as  a  list  of  fixed  strings,  separated by newlines, any of which is to be matched.  (−F is
              specified by POSIX.)

       −G, −−basic−regexp
              Interpret PATTERN as a basic regular expression (BRE, see below).  This is the default.

       −P, −−perl−regexp
              Interpret PATTERN as a Perl regular expression.  This is highly experimental and grep −P may warn of  unimplemented
              features.




--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list