Ticket #749 (new defect)

Opened 3 years ago

Last modified 3 years ago

Package check cannot handle byte-order-mark in .cabal file

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Cabal library Version: 1.8.0.6
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform: Windows

Description

When I edit a .cabal file with Notepad (Windows XP) and save it as UTF-8, Notepad writes a byte-order-mark at the start of the file. When testing the package for upload, I got the message:

400 Error in upload line 1: unrecognised field or section: "\65279Name: GeBoP"

Henk-Jan van Tuyl

Change History

Changed 3 years ago by duncan

This is a temporary workaround for the fact that other tools cannot handle the BOM in .cabal files. See ticket #714.

You can workaround the problem by not using the BOM for the .cabal UTF8 file.

Note: See TracTickets for help on using tickets.