public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: libc-alpha@sourceware.org
Subject: Re: [PATCH v12 0/6][BZ 10871] Month names in alternative grammatical case
Date: Mon, 19 Feb 2018 10:12:00 -0000	[thread overview]
Message-ID: <e8c811d7-519a-24c9-bbf1-99dadf29317d@gmail.com> (raw)
In-Reply-To: <ce46d450-e814-677b-0c8e-0a26ea246335@redhat.com>



On 1/20/18 12:41 AM, Carlos O'Donell wrote:
> On 01/14/2018 07:03 AM, Rafal Luzynski wrote:
>> A workaround for the problem would be to deliver the old locale data
>> and put their directory name in the LOCPATH environment variable.
>>
>> A similar problem has been reported as a bug 19084 [2] and the answer
>> was that it cannot be fixed for statically linked binaries.
> 
> OK, I have finished reviewing these patches again and testing some builds.
> 
> I agree that today we cannot support statically linked applications using new data.
> 
> Florian Weimer fairly clearly stated that he didn't object to this.
> 
> v12 + Rical's suggestions are good.
> 
> Please commit v12 :-)
> 

I am running into an interesting problem due to one of commits in this 
series

https://github.com/kraj/glibc/commit/95cb863a1ef7760a11272bbd7ba5fe62dc41be54

In OpenEmbedded SDKs a glibc for SDK host is built along for some of the 
native SDK to run uniformly across mutliple distributions. This glibc is
built with
complocaledir=/usr/lib/locale in configparms

so that it can use the locales from the SDK host and we dont have to 
ship 100+ Mb of localedata. So this optimization have worked well so far 
and we were able to run all SDKs on distros running glibc localedata as 
old as 2.15
however, after this commit this is no longer working a simple program

like

#include <locale.h>
#include <stdio.h>
#include <time.h>

int main () {

    printf("Locale is: %s\n", setlocale(LC_ALL, "en_US.UTF-8"));

    return(0);
}

compiled like

gcc a.c -Wl,-rpath,/tmp/glibc -g3 -O0 && 
LD_PRELOAD=/tmp/glibc/lib/libc.so.6 ./a.out

will show that its not able to read /usr/lib/locale/locale-archive from 
system

I know we can build full locale set and ship it along, but it increases 
SDK size so I want to know if we were just lucky thus far and it was
not supposed to work with old locale data.

What is recommended way forward ?

Thank you
-Khem

  parent reply	other threads:[~2018-02-18  7:51 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12  8:12 Rafal Luzynski
2018-01-12  8:14 ` [PATCH v12 1/6] Implement alternative month names (bug 10871) Rafal Luzynski
2018-01-22 10:36   ` [COMMITTED][PATCH " Rafal Luzynski
2018-01-22 15:51     ` Joseph Myers
2018-01-22 20:15       ` Rafal Luzynski
2018-01-12  8:16 ` [PATCH v12 3/6] Abbreviated alternative month names (%Ob) also added " Rafal Luzynski
2018-01-22 10:38   ` [COMMITTED][PATCH " Rafal Luzynski
2018-01-12  8:18 ` [PATCH v12 5/6] Documentation to the above changes " Rafal Luzynski
2018-01-15  3:42   ` Rical Jasan
2018-01-15  6:28     ` Carlos O'Donell
2018-01-15  8:31       ` Rical Jasan
2018-01-15 11:53         ` Rafal Luzynski
2018-01-15 11:47     ` Rafal Luzynski
2018-01-18 12:04       ` [PING][PATCH " Rafal Luzynski
2018-01-18 13:36         ` Joseph Myers
2018-01-20  8:44           ` Carlos O'Donell
2018-01-22 16:01             ` Joseph Myers
2018-01-20  8:36       ` [PATCH " Rical Jasan
2018-01-20  8:39         ` Carlos O'Donell
2018-01-20 10:50         ` Rafal Luzynski
2018-01-22  8:43           ` Rafal Luzynski
2018-01-23  3:41             ` Rical Jasan
2018-01-23 22:09               ` Rafal Luzynski
2018-01-25  0:45                 ` Rafal Luzynski
2018-01-25  1:47                   ` Carlos O'Donell
2018-01-31 17:22                     ` Rafal Luzynski
2018-01-22 10:40   ` Rafal Luzynski
2018-01-12  8:20 ` [PATCH v12 6/6] pl_PL: Add alternative month names " Rafal Luzynski
2018-01-22 10:42   ` [COMMITTED][PATCH " Rafal Luzynski
2018-01-13 11:05 ` [PATCH v12 0/6][BZ 10871] Month names in alternative grammatical case Rafal Luzynski
2018-01-14  3:53 ` Carlos O'Donell
2018-01-14 15:03   ` Rafal Luzynski
2018-01-20  8:41     ` Carlos O'Donell
2018-01-20 10:47       ` Rafal Luzynski
2018-01-20 22:46         ` Carlos O'Donell
2018-02-19 10:12       ` Khem Raj [this message]
2018-02-22  0:24         ` Rafal Luzynski
2018-02-22  5:25         ` Carlos O'Donell
2018-02-22  5:58           ` Khem Raj
2018-02-22  6:52             ` Carlos O'Donell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8c811d7-519a-24c9-bbf1-99dadf29317d@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).