Have `scm_take_locale_symbol ()' return an interned symbol (fixes bug #25865).
authorLudovic Courtès <ludo@gnu.org>
Wed, 18 Mar 2009 21:28:37 +0000 (22:28 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 19 Mar 2009 21:17:40 +0000 (22:17 +0100)
commit05588a1acea43792f33ea632af0d316e847fa9db
tree28d93f73da8107a02d728b37649dc7545a1d15ec
parente0a3ad670bf43b9815bec31b83417de2bc3c2784
Have `scm_take_locale_symbol ()' return an interned symbol (fixes bug #25865).

* libguile/symbols.c (intern_symbol): New function, with code formerly
  duplicated in `scm_i_c_mem2symbol ()' and `scm_i_mem2symbol ()'.
  (scm_i_c_mem2symbol, scm_i_mem2symbol): Use it.
  (scm_take_locale_symboln): Use `intern_symbol ()'.  This fixes
  bug #25865.

* test-suite/standalone/Makefile.am
  (test_scm_take_locale_symbol_SOURCES,
  test_scm_take_locale_symbol_CFLAGS,
  test_scm_take_locale_symbol_LDADD): New variables.
  (check_PROGRAMS, TESTS): Add `test-scm-take-locale-symbol'.
NEWS
libguile/symbols.c
test-suite/standalone/.gitignore
test-suite/standalone/Makefile.am
test-suite/standalone/test-scm-take-locale-symbol.c [new file with mode: 0644]