<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/pythonce/patches/" rel="alternate"/><link href="https://sourceforge.net/p/pythonce/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/pythonce/patches/</id><updated>2007-09-05T17:39:07Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>PythonCE 2.5 for WM Smartphone</title><link href="https://sourceforge.net/p/pythonce/patches/6/" rel="alternate"/><published>2007-09-05T17:39:07Z</published><updated>2007-09-05T17:39:07Z</updated><author><name>Stefan Rusek</name><uri>https://sourceforge.net/u/stefanrusek/</uri></author><id>https://sourceforge.netc70d539d5928c41bc894968ad240d149ce320045</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Today I compiled a version of PythonCE that runs and installs on WM 5 and 6. Here it is.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Smartphone support</title><link href="https://sourceforge.net/p/pythonce/patches/5/" rel="alternate"/><published>2007-03-24T12:40:28Z</published><updated>2007-03-24T12:40:28Z</updated><author><name>Christopher Fairbairn</name><uri>https://sourceforge.net/u/cfairbairn/</uri></author><id>https://sourceforge.net0ba453765b11acd0b77083d7988bba1e1fa3a413</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The attached patch provides initial support for running PythonCE on windows mobile powered smartphone devices. The same CAB file will now install and operator on both Pocket PC and Smartphone devices.&lt;/p&gt;
&lt;p&gt;The changes are as follows:&lt;/p&gt;
&lt;p&gt;1) Altered the cab file inf file to remove potential warnings during installation about incompatible screen sizes.&lt;/p&gt;
&lt;p&gt;2) Altered window creation code such that failure to query the size of the Software Input Panel (SIP) is not considered a fatal error. Smartphones do not have SIPs, so SIP related API calls will always return error codes.&lt;/p&gt;
&lt;p&gt;3) Sent a couple of smartphone specific window messages to the main edit control. These messages override the behaviour of the '1' key on a cellphone's keypad when in mutli-tap mode such that the user has easy access to symbols such as ()[]@: etc as often needed when entering Python source code. On Pocket PC powered devices these additional messages will be ignored.&lt;/p&gt;
&lt;p&gt;4) Fixed a race condition which appeared to be falling over more often than it does on the pocket pc platform. When the second thread within python.exe is started up the main thread suspends itself (via a call to SuspendThread) until it is woken up by the second thread after it has performed initialisation (via a call to ResumeThread).&lt;/p&gt;
&lt;p&gt;The issue is if the newly created thread manages to execute it's call to ResumeThread before the main thread has gained control of the processor again after creating the new thread. This leads to the situation of the main thread entering it's call to SuspendThread and never being woken up (due to the second thread having called ResumeThread before we suspended).&lt;/p&gt;
&lt;p&gt;The solution I have used is to utilise a named event instead. The main thread creates an event called "PythonStartup", the newly created thread simply sets this event to the signaled state when completed, and the main thread waits for it to be become signaled. This means the main thread can detect when the second thread has completed initalisation even if it completes before we wait for it to occur on the main thread.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Icons for python related file types</title><link href="https://sourceforge.net/p/pythonce/patches/4/" rel="alternate"/><published>2007-03-24T11:32:28Z</published><updated>2007-03-24T11:32:28Z</updated><author><name>Christopher Fairbairn</name><uri>https://sourceforge.net/u/cfairbairn/</uri></author><id>https://sourceforge.net455a6a8a78f67ec6cd7aadec7ad53acb00f4999f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The attached patch adds three additional icon resources to the python.exe executable. The patch also contains additional registry settings to associate these icon resources with files of type *.py, *.pyc and *.pyw.&lt;/p&gt;
&lt;p&gt;The icons provided in the patch are based on the standard Windows port of Python. They could be replaced if this is deemed to be an issue.&lt;/p&gt;
&lt;p&gt;This helps with windows mobile's file explorer hiding file extensions etc by uniquly identifiying to the user which files in a directory listing are python scripts.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fixing raw_input()</title><link href="https://sourceforge.net/p/pythonce/patches/3/" rel="alternate"/><published>2006-10-06T00:44:46Z</published><updated>2006-10-06T00:44:46Z</updated><author><name>Santi Wangkerkoon</name><uri>https://sourceforge.net/u/santiwk/</uri></author><id>https://sourceforge.net4db3881303abce1a3b9f888f51ddb6e6f61d2b8e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Patches: raw_input() {marked with: //!!}&lt;/p&gt;
&lt;p&gt;$src\Python\bltinmodule.c ...replace &lt;br /&gt;
builtin_raw_input()&lt;br /&gt;
$src\PC\dl_nt.c ...add RawInputChar() for popup dialog &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>dst flag in localtime</title><link href="https://sourceforge.net/p/pythonce/patches/2/" rel="alternate"/><published>2006-05-23T07:46:51Z</published><updated>2006-05-23T07:46:51Z</updated><author><name>Tom Galvin</name><uri>https://sourceforge.net/u/tomgalvin/</uri></author><id>https://sourceforge.net687f45e73207f2d2d81f4cf31f511572a26fa5ea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Changes made to wince-compatibility.c to enable &lt;br /&gt;
tm_isdst flag. &lt;/p&gt;
&lt;p&gt;513a515,518&lt;br /&gt;
&amp;gt; &lt;br /&gt;
&amp;gt;    TIME_ZONE_INFORMATION tzinfo;&lt;br /&gt;
&amp;gt;    int nIsdst = (GetTimeZoneInformation(&amp;amp;tzinfo)&lt;br /&gt;
==TIME_ZONE_ID_DAYLIGHT)?1:0;&lt;br /&gt;
&amp;gt; &lt;br /&gt;
536a542,544&lt;br /&gt;
&amp;gt; &lt;br /&gt;
&amp;gt; &lt;br /&gt;
&amp;gt; &lt;br /&gt;
544c552,556&lt;br /&gt;
&amp;lt;    tm.tm_yday = Day_Of_Year_By_Month[tm.tm_mon] &lt;br /&gt;
+ tm.tm_mday - 1;&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;    tm.tm_yday = Day_Of_Year_By_Month[tm.tm_mon] &lt;br /&gt;
+ tm.tm_mday - 1; &lt;br /&gt;
&amp;gt;    tm.tm_isdst = nIsdst;&lt;br /&gt;
&amp;gt; &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patched Makefile for pyexpat and mxDateTime</title><link href="https://sourceforge.net/p/pythonce/patches/1/" rel="alternate"/><published>2005-05-30T23:52:54Z</published><updated>2005-05-30T23:52:54Z</updated><author><name>Jan Ischebeck</name><uri>https://sourceforge.net/u/userid-1287536/</uri></author><id>https://sourceforge.net4f7aa228c031a37c54388540b755c600780f475e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I patched the makefile to allow mxDateTime and pyexpat&lt;br /&gt;
to build.&lt;/p&gt;
&lt;p&gt;For mxDateTime an additional patch is needed: You have&lt;br /&gt;
to change the following array to a fixed size (f.e. 15):&lt;/p&gt;
&lt;p&gt;staticforward PyMethodDef mxDateTime_Methods[];&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
staticforward PyMethodDef mxDateTime_Methods[15];&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>