French numeric keypad patch
=?iso-8859-1?Q?Rapha=EBl?= Dechenaux
raph_d@club-internet.fr
Sun, 03 Sep 2000 15:48:28 +0200
Il s'agit d'un message multivolet au format MIME.
--------------BB540005463B9BFEC9BB4644
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
In france, ( and maybe in europe), the decimal point separator is ','
but the numeric keypad decimal point is often maped to '.'. It's then
impossible to enter floating point price in gnucash only using the
numeric keypad. I found this unconfortable.
So, here is a patch who permit to use the french numeric keypad to enter
floating point price. ( this patch is based on gnucash-1.4.5.tgz
downloaded at sourceforge )
I've only modified the function 'PriceMV' in register/pricecell.c
* description of the modification :
- The function is forced to always consider the char '.' to be a valid
decimal point, except if the thousand separator is '.'.
- At the end if there is the char '.' in newval, it return a new
string with the '.' replaced by the char decimal_point, except if the
thousand separator is '.'. ( the string newval isn't freed , since it
seem to be done in gnucash-sheet.c::gnucash_sheet_insert_cb. )
* How the patch was created :
-> diff -U3 pricecell.c pricecell.c_patched > numpad_patch
-> gzip -9 numpad_patch
* How to use the patch :
-> cd gnucash-1.4.5/src/register/
-> cp <<where numpad_patch.gz is>> numpad_patch.gz
-> gnuzip numpad_patch.gz
-> patch pricecell.c numpad_patch
this should work i hope...
mail me if there is problems.
thanks.
raf.
--------------BB540005463B9BFEC9BB4644
Content-Type: application/x-gzip;
name="numpad_patch.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="numpad_patch.gz"
H4sICCZSsjkCA251bXBhZF9wYXRjaAClVW1vmzAQ/rz8iuuXFgK0kL6oDeuUSau0SdU2qdun
qooc4yTWHIOMaVel/e+zzZthJNU0PhByPL577rnjLggCyATFBBPGjvG7u4LDHckATiE6n06u
puEFTMIwHHmeZwPnGZJ4TZL+gcvp+Vl5YDaD4OrcvwBP3S9hNhuBunIpCiyB4ZQ/wphhuIYV
x3OWYsSINjpubIB4jQQkBNMNYvMspVxadrlOixzxJJ/nJItHXm3nxSZDybxzTEU4Oj6K4WQM
Xzg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