Re: [Chicken-users] Timezone Handling in Chicken

2018-11-28 Thread Kon Lovett
i will not be able to fix this for a few days

> On Nov 28, 2018, at 12:53 PM, Jeff Moon  wrote:
> 
> 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:
> 
>   (##core#undefined)
>   (import scheme chicken (only posix 
> seconds->local-time) (only type-errors warning-argument-type) loc..
>   (##core#undefined)
>   (##core#undefined)
>   (##core#undefined)
>   (##core#undefined)
> (##sys#load-library (quote posix) #f)
> (##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
>   (locale-current#current-locale-components)
> (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


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Timezone Handling in Chicken

2018-11-28 Thread Jeff Moon
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:

  (##core#undefined)
  (import scheme chicken (only posix
seconds->local-time) (only type-errors warning-argument-type) loc..
  (##core#undefined)
  (##core#undefined)
  (##core#undefined)
  (##core#undefined)
(##sys#load-library (quote posix) #f)
(##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
  (locale-current#current-locale-components)
(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