[Hackage] #856: cabal list UTF-8 problem

#856: cabal list UTF-8 problem ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ C:\>cabal list dedukti * dedukti Synopsis: A type-checker for the cabal.EXE: <stdout>: invalid argument http://hackage.haskell.org/packages/archive/dedukti/1.1.4/dedukti.cabal "A type-checker for the λΠ-modulo calculus." -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/856 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#856: windows unicode problem with cabal list ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ Comment(by duncan): Hmm, apparently the default locale on Windows is not Unicode capable. That seems odd actually. We'll need to take this up with the ghc devs. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/856#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#856: windows unicode problem with cabal list ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ Comment(by batterseapower): The default console locale on Windows is CP850 which is most certainly not a Unicode superset. Try running "cabal list" from e.g. Cygwin's Mintty in a Unicode locale and you should get the right output. Perhaps we could change the default CodingFailureMode used to write to std{out,err} to TransliterateCodingFailure, which would replace the invalid characters with "?". I'm just concerned that this might not be the right thing to do for all Haskell programs. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/856#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#856: windows unicode problem with cabal list ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ Comment(by duncan): Ah ok, so perhaps we should just set that on stdout for the appropriate cabal commands. Have to think about what to do for `--simple-output` and similar flags designed for machine readable output. Tricky thing is that if they're consumed by a program or directed to a file then we almost certainly want utf8. If it's printed to the screen then we want the locale encoding and the forgiving ??? conversion mode. So ideally we'd just set this once in main in cabal & Setup.hs and have the machine readable output commands do something special. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/856#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#856: windows unicode problem with cabal list ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ Comment(by elga): * [http://www.releve-identite-operateur.fr/numbero-de-virgin-mobile.html virgin mobile] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/856#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#856: windows unicode problem with cabal list ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: cabal-install-0.14 Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ Changes (by kosmikus): * milestone: => cabal-install-0.14 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/856#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#856: windows unicode problem with cabal list ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: cabal-install-0.14 Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ Comment(by kosmikus): Also see #885. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/856#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#856: windows unicode problem with cabal list ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: cabal-install-0.16 Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ Changes (by kosmikus): * milestone: cabal-install-0.14 => cabal-install-0.16 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/856#comment:6 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage