Annotation of pkgsrc/inputmethod/scim-python/patches/patch-ac, revision 1.1

1.1     ! obache      1: $NetBSD$
        !             2: 
        !             3: add wanted convert.
        !             4: 
        !             5: --- src/scim-python-factory.cpp.orig   2008-07-11 04:16:15.000000000 +0000
        !             6: +++ src/scim-python-factory.cpp
        !             7: @@ -134,14 +134,14 @@ PyIMEngineFactory::get_attr_unicode (cha
        !             8:                #else
        !             9:                        gunichar *unistr = g_utf16_to_ucs4 (PyUnicode_AS_UNICODE (pValue),
        !            10:                                                PyUnicode_GET_SIZE (pValue), NULL, NULL, NULL);
        !            11: -                      result = (wchar_t *) unistr;
        !            12: +                      result = WideString(unistr);
        !            13:                        g_free (unistr);
        !            14:                #endif
        !            15:                }
        !            16:                else if (PyString_Check (pValue)) {
        !            17:                        gunichar *unistr = g_utf8_to_ucs4 (PyString_AsString (pValue),
        !            18:                                                PyString_GET_SIZE (pValue), NULL, NULL, NULL);
        !            19: -                      result = (wchar_t *)unistr;
        !            20: +                      result = WideString(unistr);
        !            21:                        g_free (unistr);
        !            22:                }
        !            23:                Py_DECREF (pValue);

CVSweb <webmaster@jp.NetBSD.org>