[Python-checkins] CVS: python/dist/src/Mac/Contrib/BBPy.lm BBPy.c,1.1,1.2
Jack Jansen
jackjansen@users.sourceforge.net
Thu, 17 May 2001 05:45:00 -0700
Update of /cvsroot/python/python/dist/src/Mac/Contrib/BBPy.lm
In directory usw-pr-cvs1:/tmp/cvs-serv28721/Python/Mac/Contrib/BBPy.lm
Modified Files:
BBPy.c
Log Message:
Fixed macroman<->latin1 conversion. Some chars don't
exist in latin1, but at least the roundtrip results in the
same macroman characters.
Index: BBPy.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Contrib/BBPy.lm/BBPy.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** BBPy.c 2001/03/10 13:24:40 1.1
--- BBPy.c 2001/05/17 12:44:58 1.2
***************
*** 57,61 ****
r.pos = pb.fCalcRunParams.fStartOffset;
r.p = ((unsigned char*)pb.fText) + pb.fCalcRunParams.fStartOffset;
! // Adjust for the gap if wešre not already past it.
if ((!r.past_gap) && (r.pos >= pb.fTextGapLocation)){
r.p += pb.fTextGapLength;
--- 57,61 ----
r.pos = pb.fCalcRunParams.fStartOffset;
r.p = ((unsigned char*)pb.fText) + pb.fCalcRunParams.fStartOffset;
! // Adjust for the gap if weÕre not already past it.
if ((!r.past_gap) && (r.pos >= pb.fTextGapLocation)){
r.p += pb.fTextGapLength;