what was i thinking when i wrote that?
authorThomas Nagy <tnagy1024@gmail.com>
Sun, 4 Sep 2011 15:44:23 +0000 (15:44 +0000)
committerThomas Nagy <tnagy1024@gmail.com>
Sun, 4 Sep 2011 15:44:23 +0000 (15:44 +0000)
git-svn-id: https://waf.googlecode.com/svn/trunk@11572 f0382ac9-c320-0410-b3f0-b508d59f5a85

waflib/extras/msvs.py

index 3d9a0e48493de91aeeca0f191675b2e05ceab785..3e2bf1b5c48b27041cb863b48e196c0671381467 100644 (file)
@@ -360,7 +360,7 @@ def stealth_write(self, data, flags='wb'):
                data = data.decode(sys.getfilesystemencoding(), 'replace')
                data = data.encode('utf-8')
 
-       if self.name.endswith('.xml'):
+       if self.name.endswith('.vcproj') or self.name.endswith('.vcxproj'):
                data = BOM + data
 
        try: