[issue34553] Python Crashes when trying to access any date related fields in MailItem

2021-10-19 Thread Erik Janssens
Erik Janssens added the comment: At least for us, the issue seems to be related to the MSVC runtime. We compiled python with mingw using the mingw runtime, and the issue was gone. On Tue, 2021-10-19 at 09:02 +, Irit Katriel wrote: > Irit Katriel added the comment: > It doesn't loo

[issue37801] Compilation on MINGW64 fails (CODESET,wcstok,...)

2019-08-17 Thread Erik Janssens
Erik Janssens added the comment: fyi 1 : this issue pops up in multiple places, cfr : * bpo-35890 * bpo-20596 the selection of the wcstok function is based on MS_WINDOWS being defined, rather than eg. an autoconf check on which function is available. fyi 2 : I've been able to cross

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-22 Thread Erik Janssens
Change by Erik Janssens : -- pull_requests: +13401 ___ Python tracker <https://bugs.python.org/issue36965> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Erik Janssens
Erik Janssens added the comment: PR has been changed to include "windows.h" ... -- ___ Python tracker <https://bugs.python.org/issue36965> ___ ___

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Erik Janssens
Erik Janssens added the comment: ok, thank you for the advice, I'll keep it in mind and adapt the PR ! -- ___ Python tracker <https://bugs.python.org/issue36

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Erik Janssens
Erik Janssens added the comment: including "winnt.h" gives me compilation problems with other undefined types. however, simply including "windows.h" instead of both includes compiles just fine. so maybe that is sufficient ?? -- __

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens
Erik Janssens added the comment: According to the Microsoft documentation at https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/using-ntstatus-values system-supplied status codes are defined in ntstatus.h. and the NTSTATUS type is defined in ntdef.h PR 13421 includes both

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens
Change by Erik Janssens : -- keywords: +patch pull_requests: +13330 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36965> ___ ___ Py

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens
New submission from Erik Janssens : in Modules/main.c STATUS_CONTROL_C_EXIT is included conditionally if compiling when _MSC_VER is defined. Later on STATUS_CONTROL_C_EXIT is used if MS_WINDOWS is defined. This breaks compilation of main.c with any non MSC compiler while compiling for MS

[issue20596] Support for alternate wcstok syntax for Windows compilers

2019-05-19 Thread Erik Janssens
Erik Janssens added the comment: The same issue was handled in bpo-35890 -- pull_requests: +13329 ___ Python tracker <https://bugs.python.org/issue20

[issue35890] Cleanup some non-consistent API callings

2019-05-19 Thread Erik Janssens
Change by Erik Janssens : -- pull_requests: +13328 ___ Python tracker <https://bugs.python.org/issue35890> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20596] Support for alternate wcstok syntax for Windows compilers

2018-11-09 Thread Erik Janssens
Erik Janssens added the comment: @serhiy.storchaka Are you suggesting the discrimination should be based on compiler specific defines, or rather that it should go through configuration (a HAVE_WCSTOK_S pyconfig.h) ? -- ___ Python tracker <ht

[issue20596] Support for alternate wcstok syntax for Windows compilers

2018-11-01 Thread Erik Janssens
Erik Janssens added the comment: I created a github pull request based on the last patch of Jeffrey Armstrong. Since mingw now also has a wcstok_s function, the discrimination between wcstok/wcstok_s is now based on MS_WINDOWS being defined, as was the case in Modules/main.c

[issue20596] Support for alternate wcstok syntax for Windows compilers

2018-11-01 Thread Erik Janssens
Change by Erik Janssens : -- pull_requests: +9597 ___ Python tracker <https://bugs.python.org/issue20596> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Erik Janssens
Erik Janssens added the comment: @vijay may I suggest you try to investigate your issue in more detail : - does it depend on the Python version ? If so which versions work, which dont. - does the crash happen as well when using the REPL ? - if you use PyQt instead of pywin32, does it still

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Erik Janssens
Erik Janssens added the comment: @ronaldoussoren In my case it was not Outlook, it was a third party line of business application, but as in the case of the OP, as mentioned in the StackOverflow link, the crashing only happens using certain Python version. I'm not suggesting the issue

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-06 Thread Erik Janssens
Erik Janssens added the comment: for what's it worth, I've observed similar crashes under these strange circumstances : - the crashes don't appear in python 3.4, but they do in 3.5 (maybe due to switch in msvc runtime) - the crashes do appear when run as script, the exact same commands

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-09-06 Thread Erik Janssens
Change by Erik Janssens : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34217> ___ ___ Pyth

[issue34581] Windows : use of __pragma msvc extension without ifdef

2018-09-04 Thread Erik Janssens
Change by Erik Janssens : -- keywords: +patch pull_requests: +8526 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34581> ___ ___ Py

[issue34581] Windows : use of __pragma msvc extension without ifdef

2018-09-04 Thread Erik Janssens
New submission from Erik Janssens : The socketmodule uses the MSVC extension __pragma. The use of this extension is not enabled/disable by an #ifdef _MSC_VER. This prevents compilation with other compilers then MSVC on Windows. -- components: Extension Modules messages: 324603 nosy

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-08-18 Thread Erik Janssens
Erik Janssens added the comment: I'll try to be more precise : - I did an (imperfect) search : before these changes 98% of the windows headers were included in the .c files in lowercase - These changes would bring it to 100% - The advantage of these changes are consistency and the ability

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-08-16 Thread Erik Janssens
Erik Janssens added the comment: As I understand it, if mingw-w64 would change to camelcase headers, it would break backwards compatibility, since a lot of windows source code uses file names in includes that differ from those on this, which works in MSVC, so it goes unnoticed

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-08-16 Thread Erik Janssens
Erik Janssens added the comment: The lowercase headers are indeed part of the mingw-w64 SDK, which is the most convenient option to cross compile on a linux host for a windows target. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-08-16 Thread Erik Janssens
Erik Janssens added the comment: @inada.naoki : thank you ! @steve.dower : I would not consider those bugs per se, but they are inconsistencies, for example in the master branch : number of "Windows.h" includes : 2 number of "windows.h" includes : 55 whatever might be

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-08-15 Thread Erik Janssens
Erik Janssens added the comment: Attached a small helper script to detect camelcase windows headers, 2 more occurences found : Modules/socketmodule.c versionhelpers.h 306 #include Tools/msi/bundle/bootstrap/pch.h uxtheme.h 18 #include -- status: closed -> open Added file: ht

[issue27186] add os.fspath()

2018-08-13 Thread Erik Janssens
Erik Janssens added the comment: thank you for the info ... I'll have a look at making the posix module easier to port ... -- ___ Python tracker <https://bugs.python.org/issue27

[issue27186] add os.fspath()

2018-08-06 Thread Erik Janssens
Erik Janssens added the comment: is there a particular reason for PyOS_FSPath to live in posixmodule.c since Objects/unicodeobject.c uses this function, this makes it not possible to compile Python without a posixmodule. this makes it difficult to compile a 'core' python on a new platform

[issue20596] Support for alternate wcstok syntax for Windows compilers

2018-08-04 Thread Erik Janssens
Erik Janssens added the comment: Would anyone mind if I create a new issue to reflect the current situation and create a PR to handle it with a Py_WCSTOK ? -- nosy: +erikjanss ___ Python tracker <https://bugs.python.org/issue20

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-07-29 Thread Erik Janssens
Change by Erik Janssens : -- pull_requests: +8058 ___ Python tracker <https://bugs.python.org/issue34217> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-07-24 Thread Erik Janssens
Change by Erik Janssens : -- keywords: +patch pull_requests: +7978 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34217> ___ ___ Py

[issue34217] windows: cross compilation fails due to headers with uppercase

2018-07-24 Thread Erik Janssens
New submission from Erik Janssens : When cross compiling python on a linux host with a case sensitive file system for a windows target. The compilation will fail due to header files which contain uppercases. -- components: Cross-Build, Windows messages: 322333 nosy: Alex.Willmer