Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8c42a284
Commit
8c42a284
authored
Oct 03, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable unicode_resize() optimization on Windows (16-bit wchar_t)
parent
9e26e819
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Objects/unicodeobject.c
Objects/unicodeobject.c
+4
-0
No files found.
Objects/unicodeobject.c
View file @
8c42a284
...
@@ -1185,6 +1185,10 @@ static int
...
@@ -1185,6 +1185,10 @@ static int
unicode_resizable
(
PyObject
*
unicode
)
unicode_resizable
(
PyObject
*
unicode
)
{
{
Py_ssize_t
len
;
Py_ssize_t
len
;
#if SIZEOF_WCHAR_T == 2
/* FIXME: unicode_resize() is buggy on Windows */
return
0
;
#endif
if
(
Py_REFCNT
(
unicode
)
!=
1
)
if
(
Py_REFCNT
(
unicode
)
!=
1
)
return
0
;
return
0
;
if
(
PyUnicode_CHECK_INTERNED
(
unicode
))
if
(
PyUnicode_CHECK_INTERNED
(
unicode
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment