linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Keisial <keisial-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: strftime(3) clarifying the 'current locales'
Date: Mon, 12 Apr 2010 23:29:57 +0200	[thread overview]
Message-ID: <4BC390D5.3000709@gmail.com> (raw)

Hello,
Could you add a note to strftime(3) stating that to take advantage of
locale specific names you need to call setlocale(3) first?
It seems silly when you know it, but wasn't aware that the C locale was
automatically selected on startup (I expected it to be automatically
lazy-loaded, based on the environment vars).
Alternatively, the example could be changed to need a setlocale call,
like strftime(3P) does, so it can at least point in the right direction.

The man page is not wrong on itself, but I don't think that it is to be
expected before you know it that the "current locale" would be
something different than the locale that the user has been seeing
all along its session (or maybe i'm more noob than most
programmers :).

Thanks for your documentation work.
It's really useful!

PS: Please CC in reply.

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2010-04-12 21:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4BC390D5.3000709@gmail.com \
    --to=keisial-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 NNTP newsgroup(s).