[Python-checkins] python/dist/src/Include fileobject.h,2.31,2.32

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 10 May 2003 00:08:52 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv10809/Include

Modified Files:
	fileobject.h 
Log Message:
Patch #612627: Add encoding attribute to file objects, and determine
the terminal encoding on Windows and Unix.


Index: fileobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/fileobject.h,v
retrieving revision 2.31
retrieving revision 2.32
diff -C2 -d -r2.31 -r2.32
*** fileobject.h	12 Aug 2002 07:21:56 -0000	2.31
--- fileobject.h	10 May 2003 07:08:50 -0000	2.32
***************
*** 25,28 ****
--- 25,29 ----
  	int f_skipnextlf;	/* Skip next \n */
  #endif
+ 	PyObject *f_encoding;
  } PyFileObject;
  
***************
*** 34,37 ****
--- 35,39 ----
  PyAPI_FUNC(PyObject *) PyFile_FromString(char *, char *);
  PyAPI_FUNC(void) PyFile_SetBufSize(PyObject *, int);
+ PyAPI_FUNC(int) PyFile_SetEncoding(PyObject *, const char *);
  PyAPI_FUNC(PyObject *) PyFile_FromFile(FILE *, char *, char *,
                                               int (*)(FILE *));