From owner-freebsd-bugs Fri Aug 11 00:13:03 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id AAA09177 for bugs-outgoing; Fri, 11 Aug 1995 00:13:03 -0700 Received: from sonyinet.sony.co.jp (sonyinet.sony.co.jp [202.24.32.17]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id AAA09171 for ; Fri, 11 Aug 1995 00:12:55 -0700 Received: from sonygw.sony.co.jp ([43.0.1.249]) by sonyinet.sony.co.jp (8.6.10/3.3Wb-95072713) with SMTP id QAA21869 for ; Fri, 11 Aug 1995 16:12:38 +0900 Received: from vulcan.dev.strg.sony.co.jp ([43.1.5.200]) by sonygw.sony.co.jp (4.0/6.4J.6) id AA14940; Fri, 11 Aug 95 16:12:21 JST Received: from strg.sony.co.jp by vulcan.dev.strg.sony.co.jp with ESMTP (8.6.9+2.4Wb3/Sony4.2000.1.18MX) id QAA14401; Fri, 11 Aug 1995 16:12:35 +0900 Message-Id: <199508110712.QAA14401@vulcan.dev.strg.sony.co.jp> To: bugs@freebsd.org Subject: bug in libc/locale/rune.c (2.1.0-950726-SNAP) Date: Fri, 11 Aug 1995 16:12:34 +0900 From: SANETO Takanori Sender: bugs-owner@freebsd.org Precedence: bulk Sorry for not using 'send-pr' for reporting bugs. My FreeBSD machine does not connected to the internet. Following is an article which I posted to comp.unix.bsd.freebsd.misc. Hope this helps. ------- Forwarded Message From: sanewo@strg.sony.co.jp (SANETO Takanori) Message-ID: Date: 11 Aug 1995 03:20:58 GMT Organization: Components company, Sony Corporation, JAPAN Newsgroups: comp.unix.bsd.freebsd.misc Subject: bug in libc/locale/rune.c (2.1.0-950726-SNAP) In FreeBSD-2.1.0-950726-SNAP, due to bug in src/lib/libc/locale/rune.c (also startup_setlocate.c), when environment variable LANG is set to ja_JP.EUC (or something else), bytebench execl fails to run with the following error message: /usr/lib/libc.so: too many open files. I ktraced the execl program and found that when LANG is set, a file /usr/share/locale/${LANG}/LC_CTYPE is left opened. When I fixed the source (patch is attached), problem went away. (Note this patch is for -current, not for 2.1.0-950726-SNAP). - --- rune.c.org Fri Aug 11 12:15:42 1995 +++ rune.c Fri Aug 11 12:16:00 1995 @@ -86,6 +86,7 @@ fclose(fp); return(EFTYPE); } + fclose(fp); if (!rl->encoding[0] || !strcmp(rl->encoding, "UTF2")) { return(_UTF2_init(rl)); - --- startup_setlocale.c.org Fri Aug 11 12:15:48 1995 +++ startup_setlocale.c Fri Aug 11 12:16:11 1995 @@ -186,6 +186,7 @@ fclose(fp); return(EFTYPE); } + fclose(fp); if (!rl->encoding[0]) return(EINVAL); - --- Takanori Saneto Sony Corp., Japan ------- End of Forwarded Message