If I run the following code under csi:
(use posix locale)
(locale-current#current-locale-components)
It runs fine, and returns the expected info.  However, if I do the
following:
export TZ='America/Phoenix'
And then re-run it, I get the following:

Error: (parse-posix-literal-timezone) bad timezone STD offset:
"America/Phoenix"

        Call history:

        <syntax>          (##core#undefined)
        <syntax>          (import scheme chicken (only posix
seconds->local-time) (only type-errors warning-argument-type) loc......
        <syntax>          (##core#undefined)
        <syntax>          (##core#undefined)
        <syntax>          (##core#undefined)
        <syntax>          (##core#undefined)
        <eval>    (##sys#load-library (quote posix) #f)
        <eval>    (##sys#require (quote locale))
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        locale.scm:107: ##sys#require
        <syntax>          (locale-current#current-locale-components)
        <eval>    (locale-current#current-locale-components)    <--


The setting that I used for TZ is one of the options that is returned by
the tzselect command, so it should be valid.
Thanks,
Jeff
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to