﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
1470	tahoe.cfg with UTF-8 BOM should be accepted	davidsarah	davidsarah	"{{{tahoe.cfg}}} is supposed to be encoded in UTF-8. Most editors on Windows save UTF-8 files with an initial Byte Order Mark, but that causes an error on starting the node:

{{{
C:\tahoe\furry>bin\tahoe start
STARTING 'C:\Documents and Settings\David-Sarah\.tahoe'
Traceback (most recent call last):
[...]
  File ""c:\tahoe\furry\src\allmydata\client.py"", line 133, in __init__
    node.Node.__init__(self, basedir)
  File ""c:\tahoe\furry\src\allmydata\node.py"", line 73, in __init__
    self.read_config()
  File ""c:\tahoe\furry\src\allmydata\node.py"", line 122, in read_config
    self.config.read([os.path.join(self.basedir, ""tahoe.cfg"")])
  File ""C:\Python27\lib\ConfigParser.py"", line 297, in read
    self._read(fp, filename)
  File ""C:\Python27\lib\ConfigParser.py"", line 504, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: C:\Documents and Settings\David-Sarah\.tahoe\tahoe.cfg, line: 1
'\xef\xbb\xbf# -*- mode: conf; coding: utf-8 -*-\n'

Failed to load application: File contains no section headers.
file: C:\Documents and Settings\David-Sarah\.tahoe\tahoe.cfg, line: 1
'\xef\xbb\xbf# -*- mode: conf; coding: utf-8 -*-\n'
}}}

This may also apply to other configuration files."	defect	closed	major	1.9.2	code	1.8.2	fixed	unicode config reviewed		
