public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Stefan Tauner <stefan.tauner@gmx.at>
To: newlib@sourceware.org
Subject: _PathLocale and __collate_load_tables()
Date: Fri, 18 Nov 2022 06:06:28 +0100	[thread overview]
Message-ID: <1MqJqN-1pHDqH0zJb-00nNxF@mail.gmx.net> (raw)

Hi,

there is a char *_PathLocale = NULL; in ./newlib/libc/locale/locale.c
that is only read in __collate_load_tables()
in ./newlib/libc/posix/collate.c
I have looked at the git history and even googled but I couldn't figure
out at all what the variable is supposed to be used for. Half of
__collate_load_tables() would be unreachable if _PathLocale is never
non-null. And then I looked at where __collate_load_tables() is used...
and it seems to be not used within the library itself at all, and from
the __ prefix I'd assume it's not really meant to be used externally
(although it has a prototype in collate.h).

Is this all just dead code or what am I missing? :)

-- 
Kind regards/Mit freundlichen Grüßen, Stefan Tauner

             reply	other threads:[~2022-11-18  5:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-18  5:06 Stefan Tauner [this message]
2022-11-21 12:23 ` Corinna Vinschen

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=1MqJqN-1pHDqH0zJb-00nNxF@mail.gmx.net \
    --to=stefan.tauner@gmx.at \
    --cc=newlib@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).