From e37142e8aaa903920d4f13a5ef66a352618e65c6 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 22 May 2016 09:51:54 +0200 Subject: Replace gh_scm2newstr with scm_to_locale_string As gh_scm2newstr is deprecated. --- pyguile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyguile.c') diff --git a/pyguile.c b/pyguile.c index ef7d436..003d852 100644 --- a/pyguile.c +++ b/pyguile.c @@ -341,7 +341,7 @@ python_eval(SCM sobj,SCM smode) ? Py_file_input : Py_eval_input; - char *pstr = gh_scm2newstr(sobj,NULL); + char *pstr = scm_to_locale_string(sobj); if (NULL == pstr) { scm_memory_error("python-eval"); // NOT COVERED BY TESTS //return(SCM_UNSPECIFIED); @@ -414,7 +414,7 @@ python_import(SCM smodulename) scm_wrong_type_arg("python-import",SCM_ARG1,smodulename); } else { - char *mname = gh_scm2newstr(smodulename,NULL); + char *mname = scm_to_locale_string(smodulename); PyObject *pmodule = PyImport_ImportModule(mname); PyObject *pexception = PyErr_Occurred(); if (pexception) { -- cgit v1.2.3