[Hackage] #692: Hackage should not permit hs files encoded as Latin1
#692: Hackage should not permit hs files encoded as Latin1 --------------------------------+------------------------------------------- Reporter: ezyang | Owner: Type: defect | Status: new Priority: low | Milestone: Component: hackageDB website | Version: 1.6.0.3 Severity: minor | Keywords: Difficulty: unknown | Ghcversion: Platform: | --------------------------------+------------------------------------------- They seem innocuous (usually hiding in source code comments, lest they fail to compile) but they make uniformly loading *.hs files into memory a pain, since you have to heuristically determine what encoding a file that is not Unicode-enabled is. We should ban them: it's UTF-8 or nothin'. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/692 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
#692: Hackage should not permit hs files encoded as Latin1 --------------------------------+------------------------------------------- Reporter: ezyang | Owner: Type: enhancement | Status: new Priority: low | Milestone: Component: hackageDB website | Version: 1.6.0.3 Severity: minor | Keywords: Difficulty: unknown | Ghcversion: Platform: | --------------------------------+------------------------------------------- Changes (by ross): * type: defect => enhancement -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/692#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
#692: Hackage should not permit hs files encoded as Latin1 --------------------------------+------------------------------------------- Reporter: ezyang | Owner: Type: enhancement | Status: new Priority: low | Milestone: Component: hackageDB website | Version: 1.6.0.3 Severity: minor | Keywords: Difficulty: unknown | Ghcversion: Platform: | --------------------------------+------------------------------------------- Comment(by duncan): GHC since version 6.10 (if I recall correctly) loads .hs files as UTF8. Why does it not fail when the package is compiled? We should not need an additional specific check. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/692#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
#692: Hackage should not permit hs files encoded as Latin1 --------------------------------+------------------------------------------- Reporter: ezyang | Owner: Type: enhancement | Status: new Priority: low | Milestone: Component: hackageDB website | Version: 1.6.0.3 Severity: minor | Keywords: Difficulty: unknown | Ghcversion: Platform: | --------------------------------+------------------------------------------- Comment(by ezyang): I believe that GHC will ignore invalid UTF8 sequences that are contained in comments. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/692#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage