ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] curry-0.9.11-alt1: Sisyphus/i586 test rebuild failed [2]
Date: Mon, 27 Sep 2010 00:26:11 +0400
Message-ID: <20100926202611.GA10107@mw.office.seiros.ru> (raw)
In-Reply-To: <20100926200157.GG30210@osdn.org.ua>

[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]

On Sun, Sep 26, 2010 at 11:01:57PM +0300, Michael Shigorin wrote:

>> ../cycc   --split-code -o .Parser/Parser Parser.curry
>> cycc: Parser.curry: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character)
MS> В некоторой мере гуглится, но хаскель я не знаю и даже уж
MS> не помню, кто попросил опакетить curry в образовательных целях.
MS> Поэтому сам по себе он плавно вылетит из сизифа, хотя в принципе
MS> можно было бы посмотреть http://zinc-project.sourceforge.net/

Суть проблемы в том, что новый хаскелль тебе по-другому работает с utf-8.
К примеру при вводе-выводе он сам пытается конвертировать. И это приводит
к граблям.

http://ghcmutterings.wordpress.com/2009/09/30/heads-up-what-you-need-to-know-about-unicode-io-in-ghc-6-12-1/

Думаю принудительное hSetBinaryMode handle true должно спасти положение.

Но куда его воткнуть я в этой страшной штуковине не разобрался. Похоже что
в IO.curry, но разобраться детально не получилось.

-- 
С уважением, Денис

http://mithraen.ru/
----------------------------------------------------------------------------

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

      reply	other threads:[~2010-09-26 20:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-26 20:01 ` Michael Shigorin
2010-09-26 20:26   ` Денис Смирнов [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100926202611.GA10107@mw.office.seiros.ru \
    --to=mithraen@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git