Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 43847:0377ba9bc359
Paths and file names from the fs should always be decoded with PyUnicode_DecodeFSDefault and not PyUnicode_FromString
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 14 Nov 2007 00:15:01 +0000 |
| parents | 1561763cda72 |
| children | ee081609cee8 |
comparison
equal
deleted
inserted
replaced
| 43844:2c97e24b16cf | 43847:0377ba9bc359 |
|---|---|
| 1070 SET_SYS_FROM_STRING("copyright", | 1070 SET_SYS_FROM_STRING("copyright", |
| 1071 PyUnicode_FromString(Py_GetCopyright())); | 1071 PyUnicode_FromString(Py_GetCopyright())); |
| 1072 SET_SYS_FROM_STRING("platform", | 1072 SET_SYS_FROM_STRING("platform", |
| 1073 PyUnicode_FromString(Py_GetPlatform())); | 1073 PyUnicode_FromString(Py_GetPlatform())); |
| 1074 SET_SYS_FROM_STRING("executable", | 1074 SET_SYS_FROM_STRING("executable", |
| 1075 PyUnicode_FromString(Py_GetProgramFullPath())); | 1075 PyUnicode_DecodeFSDefault( |
| 1076 Py_GetProgramFullPath())); | |
| 1076 SET_SYS_FROM_STRING("prefix", | 1077 SET_SYS_FROM_STRING("prefix", |
| 1077 PyUnicode_FromString(Py_GetPrefix())); | 1078 PyUnicode_DecodeFSDefault(Py_GetPrefix())); |
| 1078 SET_SYS_FROM_STRING("exec_prefix", | 1079 SET_SYS_FROM_STRING("exec_prefix", |
| 1079 PyUnicode_FromString(Py_GetExecPrefix())); | 1080 PyUnicode_DecodeFSDefault(Py_GetExecPrefix())); |
| 1080 SET_SYS_FROM_STRING("maxint", | 1081 SET_SYS_FROM_STRING("maxint", |
| 1081 PyInt_FromLong(PyInt_GetMax())); | 1082 PyInt_FromLong(PyInt_GetMax())); |
| 1082 SET_SYS_FROM_STRING("maxsize", | 1083 SET_SYS_FROM_STRING("maxsize", |
| 1083 PyInt_FromSsize_t(PY_SSIZE_T_MAX)); | 1084 PyInt_FromSsize_t(PY_SSIZE_T_MAX)); |
| 1084 SET_SYS_FROM_STRING("maxunicode", | 1085 SET_SYS_FROM_STRING("maxunicode", |
