Diff for /gpl/axl/py-axl/py_axl.c between versions 1.1 and 1.1.1.2

version 1.1, 2011/06/08 07:09:12 version 1.1.1.2, 2012/02/17 12:50:03
Line 36 Line 36
  *         info@aspl.es - http://www.aspl.es/axl   *         info@aspl.es - http://www.aspl.es/axl
  */   */
 #include <py_axl.h>  #include <py_axl.h>
   #include <locale.h>
   
 #define LOG_DOMAIN "py-axl"  #define LOG_DOMAIN "py-axl"
   
Line 188  static PyMethodDef py_axl_methods[] = {  Line 189  static PyMethodDef py_axl_methods[] = { 
 PyMODINIT_FUNC  initlibpy_axl (void)  PyMODINIT_FUNC  initlibpy_axl (void)
 {  {
         PyObject * module;          PyObject * module;
   
           /** 
            * NOTE: it seems the previous call is not the appropriate way
            * but there are relevant people that do not think so:
            *
            * http://fedoraproject.org/wiki/Features/PythonEncodingUsesSystemLocale
            *
            * Our appreciation is that python should take care of the
            * current system locale to translate unicode content into
            * const char strings, for those Py_ParseTuple and Py_BuildArg
            * using s and z, rather forcing people to get into these
            * hacks which are problematic. 
            */
           PyUnicode_SetDefaultEncoding ("UTF-8");
              
   
         /* call to initilize threading API and to acquire the lock */          /* call to initilize threading API and to acquire the lock */
         PyEval_InitThreads();          PyEval_InitThreads();

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>