Modify socket and time functions for wide strings
authorMichael Gran <spk121@yahoo.com>
Sun, 23 Aug 2009 13:50:45 +0000 (06:50 -0700)
committerMichael Gran <spk121@yahoo.com>
Sun, 23 Aug 2009 16:29:45 +0000 (09:29 -0700)
commit587a33556fdef90025c1b7d4d172af649c8ebba8
tree97792a8e7e1a2b9cb05596df2332294a6c316671
parent27646f414e9350c2bf9f35982082bcabfb475c5d
Modify socket and time functions for wide strings

* libguile/socket.c (scm_recv): receive the message without holding the
  stringbuf writing lock
  (scm_send): try to narrow a string before using it

* libguile/stime.c (strftime): convert string to UTF-8 so that it can
  be safely passed to strftime
  (strptime): convert input string to UTF-8 so that it can be safely
  passed through strptime

* libguile/strings.c (narrow_stringbuf): new function
  (scm_i_try_narrow_string): new function

* libguile/strings.h: new declaration for scm_i_try_narrow_string
libguile/socket.c
libguile/stime.c
libguile/strings.c
libguile/strings.h
test-suite/tests/time.test