This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Should glibc provide a builtin C.UTF-8 locale?
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: keld at keldix dot com, Rich Felker <dalias at libc dot org>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 13 Feb 2015 07:43:38 -0500
- Subject: Re: Should glibc provide a builtin C.UTF-8 locale?
- Authentication-results: sourceware.org; auth=none
- References: <54DB8243 dot 3050903 at redhat dot com> <20150211235304 dot GA20330 at www5 dot open-std dot org> <20150212023923 dot GP23507 at brightrain dot aerifal dot cx> <20150212063839 dot GA10787 at www5 dot open-std dot org> <20150212151509 dot GQ23507 at brightrain dot aerifal dot cx> <20150212192544 dot GA19724 at www5 dot open-std dot org> <54DD0DCD dot 8010004 at redhat dot com> <87pp9ef9ml dot fsf at igel dot home>
On 02/13/2015 04:23 AM, Andreas Schwab wrote:
> "Carlos O'Donell" <carlos@redhat.com> writes:
>
>> glibc/catgets/open_catalog.c:
>> 216 (struct catalog_obj *) __mmap (NULL, st.st_size, PROT_READ,
>> 217 MAP_FILE|MAP_COPY, fd, 0);
>
> That's for X/Open style msg files, which nobody is using. You need to
> look at intl/loadmsgcat.c.
Thanks.
Similar mmap there:
850 /* Now we are ready to load the file. If mmap() is available we try
851 this first. If not available or it failed we try to load it. */
852 data = (struct mo_file_header *) mmap (NULL, size, PROT_READ,
853 MAP_PRIVATE, fd, 0);
c.