This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bag LANG setting?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]