From owner-freebsd-hackers@freebsd.org Thu Dec 19 11:07:49 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 36CB91DD0B6 for ; Thu, 19 Dec 2019 11:07:49 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47dpxw0LQ0z4YK8 for ; Thu, 19 Dec 2019 11:07:47 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f178.google.com with SMTP id m26so3324372ljc.13 for ; Thu, 19 Dec 2019 03:07:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=D8qdQdkLxvic5vE9+z2EzI5V8bbCTcIPUqTVfv9VFwc=; b=FWTHEZqnWE6BgUq/BXN8m3oYjIG312hlIOTXljP8rtosJyh4vRrAoSoVrBk8MKl+zP 3h9QAAoHwJdlqm4PDeJgs6JmQ5mb3UdaVpJsjhZs5xFFWG9+VdstxhgcolkKJM2sy5Op pJEBp9M5Mv99p0rRKMUDgkd7v2Z6V0JXLJwpjApYS90PR4Y+ntsTzkhZmLyhlQVWhaBv jH1sNeP1WXzBzGJj8fTWi6BuJjFJEPEqGs3mb8YI9/ZGcvy1roYRPsUaoxjgC1Q1JREn jhidmNPg06pdTq1wyHR5kxLneKEy1m9R0Hutvleodajx+iJlSx8MzBmc4GvKtP63sKXX 0OSA== X-Gm-Message-State: APjAAAWE+XO6tPXZzc0zcc6IOfG/ZCYocSnqa9IWhbgMu1ilx4SsnsWy A5bybZHMO9D0/eHBKsnZ5lhjDToULY0= X-Google-Smtp-Source: APXvYqwwiR8hiDtkMEJwlLEmI4l7tgC/ueXwR66MraOg3tlNXCcvHkogPfMYMhVxiSQk3Ru4f125xA== X-Received: by 2002:a2e:8942:: with SMTP id b2mr1830839ljk.162.1576753665693; Thu, 19 Dec 2019 03:07:45 -0800 (PST) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id n30sm3015344lfi.54.2019.12.19.03.07.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Dec 2019 03:07:45 -0800 (PST) Received: by mail-lj1-f176.google.com with SMTP id h23so5744591ljc.8 for ; Thu, 19 Dec 2019 03:07:45 -0800 (PST) X-Received: by 2002:a2e:9196:: with SMTP id f22mr5606864ljg.18.1576753665473; Thu, 19 Dec 2019 03:07:45 -0800 (PST) MIME-Version: 1.0 From: Gleb Popov Date: Thu, 19 Dec 2019 15:07:22 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: How to use locale(1) to set default paper size? To: freebsd-hackers X-Rspamd-Queue-Id: 47dpxw0LQ0z4YK8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.208.178 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-2.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[178.208.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.10)[ip: (-0.43), ipnet: 209.85.128.0/17(-3.12), asn: 15169(-1.90), country: US(-0.05)]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[178.208.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Thu, 19 Dec 2019 11:07:49 -0000 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?