unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* guildhall update failed under zh_CN.UTF-8 locale
@ 2011-07-21  7:53 nalaginrut
  2011-08-04 13:09 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: nalaginrut @ 2011-07-21  7:53 UTC (permalink / raw)
  To: bug-guile

here is the backtrace:
------------------------------->cut<-------------------------------------
Backtrace:
In ../../module/ice-9/boot-9.scm:
 170: 17 [catch #t #<catch-closure 83e3360> ...]
In unknown file:
   ?: 16 [catch-closure]
In ../../module/ice-9/boot-9.scm:
  62: 15 [call-with-prompt prompt0 ...]
In ../../module/ice-9/eval.scm:
 389: 14 [eval # #]
 350: 13 [eval # #]
In ../../module/ice-9/boot-9.scm:
 184: 12 [with-throw-handler r6rs:exception #<procedure 8a56710 ()> ...]
In unknown file:
   ?: 11 [with-fluids* (#<fluid 31>) (#<procedure 8451ba0 args>) ...]
   ?: 10 [with-fluids* (#<fluid 36> #<fluid 35> #<fluid 28>) (# #
#) ...]
In dorodango/database.scm:
 254: 9 [call-with-database #<r6rs:record:database> #<procedure 8ad3ea0
(db)>]
In ../../module/ice-9/boot-9.scm:
 184: 8 [with-throw-handler r6rs:exception #<procedure 8c9ab10 ()> ...]
In unknown file:
   ?: 7 [loop-procedure (#<r6rs:record:repository>)]
In dorodango/repository.scm:
 139: 6 [http-download # #]
In ../../module/web/client.scm:
 109: 5 [http-get # # #<input-output: socket 178> ...]
In ../../module/web/response.scm:
 187: 4 [read-response #<input-output: socket 178>]
In ../../module/web/http.scm:
 219: 3 [lp (# # # #)]
 185: 2 [read-header #<input-output: socket 178>]
In ../../module/srfi/srfi-19.scm:
1461: 1 [string->date "Thu, 21 Jul 2011 07:47:39 +0000" "~a, ~d ~b ~Y
~H:~M:~S ~z"]
1437: 0 [priv:string->date # 0 "~a, ~d ~b ~Y ~H:~M:~S ~z" ...]

../../module/srfi/srfi-19.scm:1437:26: In procedure priv:string->date:
../../module/srfi/srfi-19.scm:1437:26: In procedure string->date:
TIME-ERROR type bad-date-template-string: ("Invalid string for "
#<procedure priv:locale-abbr-weekday->index (string)>)
------------------------------>cut<-------------------------------------------

And my locale:
-------------------->cut<---------------------------------
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN:zh:en
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
-------------------->cut<-----------------------------------



-- 
GNU Powered it
GPL Protected it
GOD Blessed it

HFG - NalaGinrut

--hacker key--
v4sw7CUSMhw6ln6pr8OSFck4ma9u8MLSOFw3WDXGm7g/l8Li6e7t4TNGSb8AGORTDLMen6g6RASZOGCHPa28s1MIr4p-x hackerkey.com
---end key---




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: guildhall update failed under zh_CN.UTF-8 locale
  2011-07-21  7:53 guildhall update failed under zh_CN.UTF-8 locale nalaginrut
@ 2011-08-04 13:09 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2011-08-04 13:09 UTC (permalink / raw)
  To: NalaGinrut; +Cc: bug-guile

Hi nalingarut,

Sorry for the delay.

On Thu 21 Jul 2011 09:53, nalaginrut <nalaginrut@gmail.com> writes:

> 1461: 1 [string->date "Thu, 21 Jul 2011 07:47:39 +0000" "~a, ~d ~b ~Y
> ~H:~M:~S ~z"]
> 1437: 0 [priv:string->date # 0 "~a, ~d ~b ~Y ~H:~M:~S ~z" ...]
>
> ../../module/srfi/srfi-19.scm:1437:26: In procedure priv:string->date:
> ../../module/srfi/srfi-19.scm:1437:26: In procedure string->date:
> TIME-ERROR type bad-date-template-string: ("Invalid string for "
> #<procedure priv:locale-abbr-weekday->index (string)>)
>
> And my locale:
> -------------------->cut<---------------------------------
> LANG=zh_CN.UTF-8
> LANGUAGE=zh_CN:zh:en
> LC_CTYPE="zh_CN.UTF-8"
...

Indeed, I was sloppy when I wrote the date parser and serializer, and
used the locale-dependent srfi-19.  I have rewritten these parsers to
not depend on the current locale, and to be more efficient.

Please pull stable-2.0 and try again.  Thanks for the report!

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-04 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-21  7:53 guildhall update failed under zh_CN.UTF-8 locale nalaginrut
2011-08-04 13:09 ` Andy Wingo

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 read-only IMAP folder(s) and NNTP newsgroup(s).