Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7572859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:02:12+00:00 2026-05-30T16:02:12+00:00

I am using Windows 7 with locale zh_CN and ghc-7.0.4 Default code page of

  • 0

I am using Windows 7 with locale zh_CN and ghc-7.0.4

Default code page of the cmd.exe is 936.

> cabal install ghc-mod
Resolving dependencies...
Configuring ghc-syb-utils-0.2.1.0...
Preprocessing library ghc-syb-utils-0.2.1.0...
Building ghc-syb-utils-0.2.1.0...

<built-in>:0:4: lexical error (UTF-8 decoding error)
cabal: Error: some packages failed to install:
ghc-mod-1.10.7 depends on ghc-syb-utils-0.2.1.0 which failed to install.
ghc-syb-utils-0.2.1.0 failed during the building phase. The exception was:
ExitFailure 1

I have tried change code page and re-install again, but get the same output.

> chcp 65001
> cabal install ghc-mod

Some packages can be built successfully:

xml-1.3.12 textmath-0.6.0.3 tagsoup-0.12.6

Some packages would fail:

temporary-1.1.2.3 utf8-string-0.3.7 pandoc-types-1.9.0.2 json-0.5

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:02:14+00:00Added an answer on May 30, 2026 at 4:02 pm

    I encountered the same problem.
    I don’t know if the cause is the same, but try

    set LANG=C
    

    before you run cabal. In my case, that fixed the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since Windows doesnt have a C++ locale with UTF8 support by default, i would
I'm using below code to file copy operataion in windows seven,but it doesn't work
I am using the following code to leverage Windows Media Encoder to record screen.
I am using git for windows to manage a local project. I have two
I know how to set up a local webserver using xampp on windows... I
Using Windows Server 2003 in a multi-user environment (via Remote Desktop, using it as
Using Windows 2003, I'm look for a way to create a logoff script that
Using Windows So I'm reading from a binary file a list of unsigned int
Using windows server, I have a path to a file that, when you click
Using Windows Mobile 6.5 and C# The CharacterCasing property seems to be missing from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.