[Python-checkins] python/dist/src/Python pythonrun.c,2.182,2.183

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Thu, 10 Apr 2003 14:53:16 -0700


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

Modified Files:
	pythonrun.c 
Log Message:
Move declaration of enc to scope where it is used

Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.182
retrieving revision 2.183
diff -C2 -d -r2.182 -r2.183
*** pythonrun.c	19 Mar 2003 00:35:36 -0000	2.182
--- pythonrun.c	10 Apr 2003 21:53:14 -0000	2.183
***************
*** 191,199 ****
  		char *saved_locale = setlocale(LC_CTYPE, NULL);
  		char *codeset;
- 		PyObject *enc = NULL;
  		setlocale(LC_CTYPE, "");
  		codeset = nl_langinfo(CODESET);
  		if (*codeset) {
! 			enc = PyCodec_Encoder(codeset);
  			if (enc) {
  				Py_FileSystemDefaultEncoding = strdup(codeset);
--- 191,198 ----
  		char *saved_locale = setlocale(LC_CTYPE, NULL);
  		char *codeset;
  		setlocale(LC_CTYPE, "");
  		codeset = nl_langinfo(CODESET);
  		if (*codeset) {
! 			PyObject *enc = PyCodec_Encoder(codeset);
  			if (enc) {
  				Py_FileSystemDefaultEncoding = strdup(codeset);