From owner-freebsd-questions@freebsd.org Thu Mar 15 23:23:13 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 562D8F5D6C3 for ; Thu, 15 Mar 2018 23:23:13 +0000 (UTC) (envelope-from Lena@lena.kiev.ua) Received: from lena.kiev.ua (lena.kiev.ua [212.109.198.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B9EC7F397 for ; Thu, 15 Mar 2018 23:23:10 +0000 (UTC) (envelope-from Lena@lena.kiev.ua) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lena.kiev.ua; s=3; h=Content-Type:Mime-Version:Message-ID:Subject:To:From: Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PcDbBVwFCZmDyQRn7tCPe9OIQxFlk3ewzkg7FPCANMM=; b=kkSZagezJMz5amWzp2EIoDw9YF zigkO4Qr75+SowoHUN030NeThsVcga1gAHEoQixoFBY7HXGte+sgEbmhew0HL1Q6iWp8sP6DxYPrT jfiKZDC1xiWLNvPUezc3Dm+A0/FJyYCWBa66l0GCVv4CUQaFKLVTP2k5jDx5UbDxusvk=; Received: from ip-1cd0.rusanovka-net.kiev.ua ([94.244.28.208] helo=bedside.lena.kiev.ua) by lena.kiev.ua with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1 (FreeBSD)) (envelope-from ) id 1ewcDH-000GDh-CL for freebsd-questions@FreeBSD.org; Fri, 16 Mar 2018 01:23:12 +0200 Received: from bedside.lena.kiev.ua (localhost.lena.kiev.ua [127.0.0.1]) by bedside.lena.kiev.ua (8.15.2/8.15.2) with ESMTP id w2FNN2uc036676 for ; Fri, 16 Mar 2018 01:23:02 +0200 (EET) (envelope-from Lena@lena.kiev.ua) Received: (from lena@localhost) by bedside.lena.kiev.ua (8.15.2/8.15.2/Submit) id w2FNN1xp036675 for freebsd-questions@FreeBSD.org; Fri, 16 Mar 2018 01:23:01 +0200 (EET) (envelope-from Lena@lena.kiev.ua) Date: Fri, 16 Mar 2018 01:23:01 +0200 From: Lena@lena.kiev.ua To: freebsd-questions@FreeBSD.org Subject: printable characters in LC_CTYPE Message-ID: <20180315232301.GA804@lena.kiev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2018 23:23:13 -0000 In FreeBSD 10 or less (like 8.4) the file /usr/src/share/mklocale/ru_RU.KOI8-R.src contains a list of printable characters: PRINT 0x20 - 0x7e 0x80 - 0xff mklocale(1) converted that source file to binary file /usr/share/locale/ru_RU.KOI8-R/LC_CTYPE Apparently, this file is used by iswprint(3) In FreeBSD 11.1 `man mklocale` says "mklocale has been replaced by localedef(1) in FreeBSD 11.0", and list of printable characters for LC_CTYPE=ru_RU.KOI8-R is different, excludes characters in 0x80-0xBF range including 0x9A (non-breaking space). As a consequence, ports mail/mutt14 and editors/aee which use iswprint(3) show garbage (escape sequences) instead of non-breaking space and some other characters. I need to change the binary file /usr/share/locale/ru_RU.KOI8-R/LC_CTYPE but how? I installed FreeBSD 11.1 i386 from memstick.img, downloaded sources. What to feed to localedef(1), where are the source files? Are they /usr/src/tools/tools/locale/etc/common.UTF-8.src and /usr/src/tools/tools/locale/etc/final-maps/map.KOI8-R ? But they seem to not specify which characters are printable.