diff --git a/.gitattributes b/.gitattributes index 31c7886001..b201c1f63f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,3 +2,7 @@ AutoDuck/*.fmt text eol=crlf *.dsp text eol=crlf *.dsw text eol=crlf + +# Files that can't be in UTF-8 encoding +com/TestSources/PyCOMTest/PyCOMTest.idl working-tree-encoding=latin1 +Pythonwin/pywin/test/_dbgscript.py working-tree-encoding=latin1 diff --git a/Pythonwin/pywin/test/_dbgscript.py b/Pythonwin/pywin/test/_dbgscript.py index efab7d975b..5fedb3302d 100644 --- a/Pythonwin/pywin/test/_dbgscript.py +++ b/Pythonwin/pywin/test/_dbgscript.py @@ -2,7 +2,7 @@ # # Script for testing pywin.debugger & interactive exec from test_pywin -# Umlauts for encoding test: áéúäöü +# Umlauts for encoding test: áéúäöü aa = 11 aa = 22 diff --git a/com/TestSources/PyCOMTest/PyCOMTest.idl b/com/TestSources/PyCOMTest/PyCOMTest.idl index 24ac96d5ac..f218e89983 100644 --- a/com/TestSources/PyCOMTest/PyCOMTest.idl +++ b/com/TestSources/PyCOMTest/PyCOMTest.idl @@ -1,3 +1,5 @@ +// -*- coding: latin1 -*- + // PyCOMTest.idl : IDL source for PyCOMTest.dll // // This is a test harness for Python @@ -26,7 +28,7 @@ typedef enum // Missing EnumTestAttributes2 uuid(6bcdcb60-5605-11d0-ae5f-cadd4c000000), version(1.1), // an extended character in the help string should stress things... - helpstring("Python COM Test Harness 1.0 Type Library, © pywin32 contributors") + helpstring("Python COM Test Harness 1.0 Type Library, © pywin32 contributors") ] library PyCOMTestLib { @@ -70,7 +72,7 @@ library PyCOMTestLib const long LongTest2 = 0x7FFFFFFFL; const unsigned char UCharTest = 255; const char CharTest = -1; - const LPWSTR StringTest = L"Hello Wo®ld"; + const LPWSTR StringTest = L"Hello Wo®ld"; }; enum TestAttributes3{ // Note missing the enum name. diff --git a/com/win32com/demos/iebutton.py b/com/win32com/demos/iebutton.py index 7ccfe866fd..2c1061553b 100644 --- a/com/win32com/demos/iebutton.py +++ b/com/win32com/demos/iebutton.py @@ -1,5 +1,3 @@ -# -*- coding: latin-1 -*- - # PyWin32 Internet Explorer Button # # written by Leonard Ritter (paniq@gmx.net) diff --git a/com/win32com/demos/ietoolbar.py b/com/win32com/demos/ietoolbar.py index cd8693d7ab..af3ff836a9 100644 --- a/com/win32com/demos/ietoolbar.py +++ b/com/win32com/demos/ietoolbar.py @@ -1,5 +1,3 @@ -# -*- coding: latin-1 -*- - # PyWin32 Internet Explorer Toolbar # # written by Leonard Ritter (paniq@gmx.net)