Bug 6716
Summary: | strftime(3) does not use LC_TIME or LC_ALL: output always in English | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | bernard |
Component: | glibc | Assignee: | Cristian Gafton <gafton> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 | CC: | bernard, pbrown |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-02-05 19:23:18 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
bernard
1999-11-04 13:23:09 UTC
as far as I know, you have to call setlocale(getenv("LC_ALL")) before you can use localized functions. === +#include <locale.h> + +setlocale(LC_ALL,""); === $ export LANG=fr_FR Thanks guys. Being used to USVR4 where strftime(3) did not need any explicit call to setlocale(3) before its use, I reported a non-bug ;-( |