From owner-freebsd-hackers@freebsd.org Fri Dec 20 02:26:29 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9AB251C930C for ; Fri, 20 Dec 2019 02:26:29 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47fCKx3bj6z4M42; Fri, 20 Dec 2019 02:26:29 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (unknown [76.212.85.177]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: truckman) by smtp.freebsd.org (Postfix) with ESMTPSA id EE0FE3698; Fri, 20 Dec 2019 02:26:28 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Date: Thu, 19 Dec 2019 18:26:25 -0800 (PST) From: Don Lewis Subject: Re: How to use locale(1) to set default paper size? To: Gleb Popov cc: freebsd-hackers In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2019 02:26:29 -0000 On 19 Dec, Gleb Popov wrote: > Hello hackers@ > > When I launch LibreOffice Writer, the default page size is set to "Letter". > From what I read on Internets, the canonical way to set default paper size > is via locale(1). Many sites propose setting LC_PAPER env var to > ru_RU.UTF-8 to get "A4" as default size. > > On FreeBSD, however, running `locale -ck` doesn't show a category for paper > size and setting LC_PAPER variable doesn't seem to work for LibreOffice. > > Any ideas what can be done about that? Go to Tools -> Options -> Language Settings -> Languages and change Locale Setting to Russian. When you create a new document and go to Format -> Page, you should see that the paper format is now A4.