[Buildroot] [git commit] fs/skeleton: remove /etc/TZ

Peter Korsgaard jacmet at sunsite.dk
Wed Oct 24 13:04:23 UTC 2012


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 Thomas> On Wed, 24 Oct 2012 09:16:50 +0200, Peter Korsgaard wrote:
 >> commit: http://git.buildroot.net/buildroot/commit/?id=5a61fbd82394f9bc9317535b717a2e1dd51dea7d
 >> branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
 >> 
 >> Defaulting to UTC (which is what uClibc will default to when /etc/TZ is
 >> missing) seems more sensible than US Mountain Time Zone in the default
 >> rootfs skeleton.

 Thomas> And with glibc/eglibc?

As far as I understand it (e)glibc doesn't use /etc/TZ:

https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html

https://www.kernel.org/pub/linux/libs/uclibc/Glibc_vs_uClibc_Differences.txt

time functions
--------------
1) Leap seconds are not supported.
2) /etc/timezone and the whole zoneinfo directory tree are not supported.
   To set the timezone, set the TZ environment variable as specified in
   http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
   or you may also create an /etc/TZ file of a single line, ending with a
   newline, containing the TZ setting.  For example
   echo CST6CDT > /etc/TZ
3) Currently, locale specific eras and alternate digits are not supported.
   They are on my TODO list.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list