This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristof
Recipients kristof, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-01-25.10:31:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548412277.74.0.133748802246.issue35825@roundup.psfhosted.org>
In-reply-to
Content
When I change Py_UNICODE_SIZE from 2 (default) to 4 in PC/pyconfig.h, msvc-14 gives the following error:
  _winreg.obj : error LNK2001: unresolved external symbol PyUnicode_DecodeMBCS [e:\kristof\SDR\sdrsandbox\w64\msvc140\Python-2.7.15\PCbuild\pythoncore.vcxproj]
  e:\kristof\SDR\sdrsandbox\w64\msvc140\Python-2.7.15\PCBuild\\amd64\python27_snps_vp.dll : fatal error LNK1120: 1 unresolved externals [e:\kristof\SDR\sdrsandbox\w64\msvc140\Python-2.7.15\PCbuild\pythoncore.vcxproj]

The problem appears to be that the missing function gets disabled in unicodeobject.c with
#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
...
#endif

while _winreg.c does not check the availability of this function.

Thanks,
Kristof
History
Date User Action Args
2019-01-25 10:31:19kristofsetrecipients: + kristof, paul.moore, tim.golden, zach.ware, steve.dower
2019-01-25 10:31:17kristofsetmessageid: <1548412277.74.0.133748802246.issue35825@roundup.psfhosted.org>
2019-01-25 10:31:17kristoflinkissue35825 messages
2019-01-25 10:31:17kristofcreate