Typo: encoding -> codeset.
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index aefef06..26557ca 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -301,7 +301,7 @@
 #ifdef MS_WINDOWS
 	if (!overridden) {
 		icodeset = ibuf;
-		encoding = buf;
+		codeset = buf;
 		sprintf(ibuf, "cp%d", GetConsoleCP());
 		sprintf(buf, "cp%d", GetConsoleOutputCP());
 	}