Index: src/OFINISection.m ================================================================== --- src/OFINISection.m +++ src/OFINISection.m @@ -108,11 +108,11 @@ { if (self != [OFINISection class]) return; needsEscapeCharacterSet = [[OFCharacterSet alloc] - initWithCharactersInString: @"\r\n\f\"\\="]; + initWithCharactersInString: @"\r\n\f\"\\=;#"]; } - (instancetype)of_initWithName: (OFString *)name OF_DIRECT { self = [super init]; Index: tests/OFINIFileTests.m ================================================================== --- tests/OFINIFileTests.m +++ tests/OFINIFileTests.m @@ -117,10 +117,11 @@ @"[tests]\r\n" @"foo=baz\r\n" @"foobar=baz\r\n" @";comment\r\n" @"new=new\r\n" + @"\"#quoted\"=\";comment\"\r\n" @"\r\n" @"[foobar]\r\n" @"#foobarcomment\r\n" @"qux=\" asd\"\r\n" @"quxquxqux=\"hello\\\"wörld\"\r\n" @@ -143,10 +144,11 @@ OFIRI *writeIRI; #endif [tests setStringValue: @"baz" forKey: @"foo"]; [tests setStringValue: @"new" forKey: @"new"]; + [tests setStringValue: @";comment" forKey: @"#quoted"]; [foobar setStringValue: @"a\fb" forKey: @"qux3"]; [types setLongLongValue: 0x10 forKey: @"integer"]; [types setBoolValue: false forKey: @"bool"]; [types setFloatValue: 0.25f forKey: @"float"]; [types setDoubleValue: 0.75 forKey: @"double"];