From owner-freebsd-bugs Mon Jul 17 03:17:54 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA21573 for bugs-outgoing; Mon, 17 Jul 1995 03:17:54 -0700 Received: from ghpc6.ihf.rwth-aachen.de (ghpc6.ihf.RWTH-Aachen.DE [134.130.90.6]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id DAA21563 for ; Mon, 17 Jul 1995 03:17:48 -0700 Received: (from thomas@localhost) by ghpc6.ihf.rwth-aachen.de (8.6.11/8.6.9) id MAA29201 for bugs@freebsd.org; Mon, 17 Jul 1995 12:17:44 +0200 From: Thomas Gellekum Message-Id: <199507171017.MAA29201@ghpc6.ihf.rwth-aachen.de> Subject: add setlocale() to more(1) To: bugs@freebsd.org Date: Mon, 17 Jul 1995 12:17:43 +0200 (MET DST) Organization: Institut f. Hochfrequenztechnik, RWTH Aachen X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 592 Sender: bugs-owner@freebsd.org Precedence: bulk Moin, I have added a call to setlocale() to more(1) to make it aware of different character encodings. The patch is attached below. tg *** /usr/src/usr.bin/more/main.c.orig Fri May 27 14:30:45 1994 --- /usr/src/usr.bin/more/main.c Sun Jul 16 10:48:53 1995 *************** *** 51,56 **** --- 51,57 ---- #include #include #include + #include int ispipe; int new_file; *************** *** 295,300 **** --- 296,303 ---- exit(0); } + setlocale(LC_CTYPE, ""); + raw_mode(1); get_term(); open_getchr();