[New-bugs-announce] [issue7519] CompileParser can't read files with BOM markers

grego87 report at bugs.python.org
Tue Dec 15 20:29:17 CET 2009

New submission from grego87 <grego87 at gmail.com>:

If config.ini file is encoded with utf-8 with bom markers this code

import ConfigParser
config = ConfigParser.ConfigParser()


ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: config.ini, line: 1

ConfigParser should be able to read such files.

components: Library (Lib), Unicode
files: config.ini
messages: 96457
nosy: grego87
severity: normal
status: open
title: CompileParser can't read files with BOM markers
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file15569/config.ini

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list