From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 30 18:55:12 2018 Received: (at submit) by debbugs.gnu.org; 30 Oct 2018 22:55:12 +0000 Received: from localhost ([127.0.0.1]:55999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHcum-0004Yo-8M for submit@debbugs.gnu.org; Tue, 30 Oct 2018 18:55:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHca0-00041w-TP for submit@debbugs.gnu.org; Tue, 30 Oct 2018 18:33:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHcZu-0003hI-Ch for submit@debbugs.gnu.org; Tue, 30 Oct 2018 18:33:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gHcZt-0003ff-6n for submit@debbugs.gnu.org; Tue, 30 Oct 2018 18:33:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHcZs-0005Ro-7z for bug-coreutils@gnu.org; Tue, 30 Oct 2018 18:33:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHcZl-0003a2-91 for bug-coreutils@gnu.org; Tue, 30 Oct 2018 18:33:34 -0400 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]:41622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHcZh-0003Vz-Jo for bug-coreutils@gnu.org; Tue, 30 Oct 2018 18:33:27 -0400 Received: by mail-ed1-x542.google.com with SMTP id x31-v6so11963841edd.8 for ; Tue, 30 Oct 2018 15:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=6YSe+l+9NaswhnmtJuNZJEQ8C0vZ4Lwic84uOoBN5cs=; b=Q/aGEPq4uZxMBTNb05MAQ3vWdGCSrX/Vxlckgo4ibkS0MPCpKbLte6KrL+TSPtgOXv tIpnLRUDSXuswT3JUIPoWJ8jex4wGVSWz3tiI76QXVO4c703OLuM9/qj0ZsVYYlO4d9D kcuOnEdHaRrRDKHXgXgU4fFPbJCTQiK2OYxQbEWNTM08geJgQC8e0i6zD6YhRN4gmz0i 3Lpk8HH5fD3+PvlOmUQxjscFHRvMj8mFr46z9/w6YX5e0CaX5buC3lKRAFRE0TGehsmY EiybBK/tgOzHOtjXYmA9K+8Owd2+p+CcFGIz7KH5JkJAhMvhWcrasRcL9jhaCQBOZgxX C/4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=6YSe+l+9NaswhnmtJuNZJEQ8C0vZ4Lwic84uOoBN5cs=; b=WaSCxTjk5Kza4Gn6VrvswWM3cn6t99dMprW+l6t6yZKc736MBf7KZz7gDEhv9sWhOc gdznytpsnv/pe0YL7HTHhx8mRIVhIjy+FBchpiGr9sEf1qTL0Pbq2nhFEgEGqQ25P/rS aavfpKZlPsW/jSVwIP02Co/cN0B39WqJXjKEJGa1u1ICdh8fLuVRZNPdEk2z4SSndstR Tomh/mwG5uOXal4zhJ4QG7oN/nY7bM7fxMuMJ7092DLZUY9mQf4H5W82L1deLlRzIwcI cQiok+FTxRfBepJrtyf48yAvupvSniJz0VgD6ChunKG9okAVHW+N1q6TFg4IlWTC5Fxk +Ofg== X-Gm-Message-State: AGRZ1gLMkKq7MvF/O0gYpFF9Y1VopMFtLuW3GRVmW3lF7nyUOKw6hYYx ZOh13rhTK3ijdZsvrn2nwSEHu7Xn X-Google-Smtp-Source: AJdET5fH0L6acy6CeGRuKNtQGsdrHr1LXuxjCB2PxSF0WUFnUGM44FtnBCkOIu96aeWE+zesR0+tNQ== X-Received: by 2002:a17:906:1001:: with SMTP id 1-v6mr207263ejm.91.1540938799906; Tue, 30 Oct 2018 15:33:19 -0700 (PDT) Received: from [10.0.0.2] (085082231092.dynamic.telenor.dk. [85.82.231.92]) by smtp.gmail.com with ESMTPSA id y88-v6sm2935213eda.74.2018.10.30.15.33.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 15:33:19 -0700 (PDT) To: bug-coreutils@gnu.org From: scootergrisen Subject: coreutils.mo is in both LC_TIME and LC_MESSAGES folders Message-ID: Date: Tue, 30 Oct 2018 22:33:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: da Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 30 Oct 2018 18:55:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I wonder if its a mistake that in Fedora i can see coreutils.mo in both: /usr/share/locale/*/LC_TIME /usr/share/locale/*/LC_MESSAGES They seem to be identical. coreutils.mo is the only file i see in the /usr/share/locale/*/LC_TIME folder. Should the /usr/share/locale/*/LC_TIME/coreutils.mo files be removed so there is only the /usr/share/locale/*/LC_MESSAGES/coreutils.mo files? From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 18 03:15:59 2019 Received: (at 33211) by debbugs.gnu.org; 18 Jan 2019 08:15:59 +0000 Received: from localhost ([127.0.0.1]:35622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkPJn-0001pT-0m for submit@debbugs.gnu.org; Fri, 18 Jan 2019 03:15:59 -0500 Received: from mail-pg1-f179.google.com ([209.85.215.179]:42234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkPJl-0001p9-3T; Fri, 18 Jan 2019 03:15:57 -0500 Received: by mail-pg1-f179.google.com with SMTP id d72so5685287pga.9; Fri, 18 Jan 2019 00:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=2u+ygwK3mD7zfsXcNksMiy5nGEeUG2ZmtKLzM/QNTdU=; b=H+Zn6EijrjeaelgkqKfNYjPwhOjSZ8Ljl1AurP9O17eW8nb7rzLEXH/BB/U+DRfcuB wMwlyFtdKdLVf6wkKhHUFTQA9g6Ah9+nJJXt7j6BejOo6/lp/j1ky3dVaUdFFGjMOAZt PwH4YVAj36NB9QmkA8Q4qwaHFYNDLU7xCcl6HRpFgxAiLQpQARbo9z9Y+Iva2WoB8g5+ K3YPDmrUOBPnkqn0f+jHuO4hrk2ALbGMradSBfVZSyAJiIAjre8eZtguNXbcVpgjfnjE yC5DCxZHDSnCgNikCbSn09rQ+qps8XO62EAp9pYSOMPVvbUh6SfCsKnuaH/4rthHGbDK FC8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2u+ygwK3mD7zfsXcNksMiy5nGEeUG2ZmtKLzM/QNTdU=; b=I62m0KK9p0hxDMHrAi2LIntKML3uWzlIoInkTFsvxvaNBmFwoOjmNopGJtqQUebhWq I4G52mQd33T5OAWbVRII5ngXm2tpRAVECav7g3jSwK6ZJEAGH8K87MaOnKSWChhUDcbc IZItqIT7Z5rWSNjjXKt+Mq7vAxNS/NYhoH/9h0Owdd8BDipkPpz/vtxx2sNgI7AlWUDQ ygMX0+h6ziI4iy8WOvvr7aOe96m+naei5MtOBQe/jIKDcweMshjkHVWbaSUZOE4Camr8 QrR19J/+qaSZqetCwJxEJNOaaZMgXhl/Vr9+lsEcQE8XaePksbn1ZvQvitZkd1+0BeY9 23/A== X-Gm-Message-State: AJcUuke3rw5J/gOJfD/nIcrJIC2Ot55MIcQmGFipwN6P09wKpFlq73av b5JoCjplXRfDE2zvER+JO8+lGqyPuQk= X-Google-Smtp-Source: ALg8bN5ADyH1nIZfTuUIyX0d86yXC0aesJ6TGfY78QccK/OAldiNwybFdsQ2YaUIU/LdbQ9VMhYwwg== X-Received: by 2002:a63:2f07:: with SMTP id v7mr15738685pgv.368.1547799350433; Fri, 18 Jan 2019 00:15:50 -0800 (PST) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id y6sm7278145pfd.104.2019.01.18.00.15.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 00:15:49 -0800 (PST) Subject: Re: bug#33211: coreutils.mo is in both LC_TIME and LC_MESSAGES folders To: scootergrisen , 33211@debbugs.gnu.org References: From: Assaf Gordon Message-ID: Date: Fri, 18 Jan 2019 01:15:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33211 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 33211 notabug close 33211 stop Hell0, On 2018-10-30 3:33 p.m., scootergrisen wrote: > I wonder if its a mistake that in Fedora i can see coreutils.mo in both: > /usr/share/locale/*/LC_TIME > /usr/share/locale/*/LC_MESSAGES > > They seem to be identical. This is not a mistake (nor a bug). Not only they are identical, one is a symlink to the other: $ cd /usr/local/share/locale/ca $ ls -log LC_*/coreutils.mo -rw-r--r-- 1 379478 Dec 27 22:47 LC_MESSAGES/coreutils.mo lrwxrwxrwx 1 27 Dec 27 22:47 LC_TIME/coreutils.mo -> ../LC_MESSAGES/coreutils.mo > coreutils.mo is the only file i see in the /usr/share/locale/*/LC_TIME > folder. Most programs that use gettext (https://www.gnu.org/software/gettext/) are concerned with user visible messages, hence most of the translation only use LC_MESSAGES directory, and there's no need for other files. Few coreutils programs (e.g. date, sort) do care about translation of time-related strings (e.g. days / month names). That's why coreutils also uses LC_TIME. One can ask for the date/time to use one local, and messages to use another: $ export LC_TIME=ru_RU.UTF-8 $ export LANGUAGE=ja_JP.UTF-8 $ date Пт янв 18 01:06:10 MST 2019 $ date -d ABCD date: `ABCD' は無効な日付です > Should the /usr/share/locale/*/LC_TIME/coreutils.mo files be removed so > there is only the /usr/share/locale/*/LC_MESSAGES/coreutils.mo files? No, Both should exist, otherwise setting LC_TIME won't work. Technically, the translated strings for both messages and time are stored in the same file - that's why when coreutils is installed, one is a symlink to the other. Even more technically, when building from source, the file "bootstrap.conf" contains the following: # Other locale categories that need message catalogs. EXTRA_LOCALE_CATEGORIES=LC_TIME The directory "./po" is populated with available translation (e.g. "ru.po" and "ja.po"). During the build, the ".po" files are compiled into binary ".gmo" files. During installation, the files are copied/symlinked: $ make install [...] make[2]: Entering directory '/home/gordon/projects/coreutils/po' installing af.gmo as /usr/local/share/locale/af/LC_MESSAGES/coreutils.mo installing af.gmo link as /usr/local/share/locale/af/LC_TIME/coreutils.mo installing be.gmo as /usr/local/share/locale/be/LC_MESSAGES/coreutils.mo installing be.gmo link as /usr/local/share/locale/be/LC_TIME/coreutils.mo [...] Hope this addresses the issue. I'm closing this as "not a bug", but discussion can continue by replying to this thread. regards, - assaf From unknown Tue Aug 12 08:32:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 15 Feb 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator