Index: wp-includes/theme.php
===================================================================
--- wp-includes/theme.php	(revision 4262)
+++ wp-includes/theme.php	(working copy)
@@ -56,7 +56,7 @@
 }
 
 function get_theme_data($theme_file) {
-	$theme_data = implode('', file($theme_file));
+	$theme_data = str_replace('\r', '\n', implode('', file($theme_file)));
 	preg_match("|Theme Name:(.*)|i", $theme_data, $theme_name);
 	preg_match("|Theme URI:(.*)|i", $theme_data, $theme_uri);
 	preg_match("|Description:(.*)|i", $theme_data, $description);

