public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* _PathLocale and __collate_load_tables()
@ 2022-11-18  5:06 Stefan Tauner
  2022-11-21 12:23 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Tauner @ 2022-11-18  5:06 UTC (permalink / raw)
  To: newlib

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-21 12:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-18  5:06 _PathLocale and __collate_load_tables() Stefan Tauner
2022-11-21 12:23 ` Corinna Vinschen

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).