ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexander Markelov <ml@13.net.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] SquirrelMail: ошибка декодирования писем koi8-r в консоли 1251
Date: Mon, 28 Jun 2004 13:19:31 +0400
Message-ID: <40DFE2A3.3050109@13.net.ru> (raw)
In-Reply-To: <40DF9136.4080305@mec.tgl.ru>

Yuri V. Anikin пишет:

> добрый день!
>
> squirrelmail-1.4.3a-alt1
> php-4.3.7-alt0.cvs20040531
> uw-imap-2001a-alt9.1
>
> locale
> LANG=ru_RU.CP1251
> LC_CTYPE=ru_RU.CP1251
> LC_NUMERIC=ru_RU.CP1251
> LC_TIME=ru_RU.CP1251
> LC_COLLATE=ru_RU.CP1251
> LC_MONETARY=ru_RU.CP1251
> LC_MESSAGES=ru_RU.CP1251
> LC_PAPER="ru_RU.CP1251"
> LC_NAME="ru_RU.CP1251"
> LC_ADDRESS="ru_RU.CP1251"
> LC_TELEPHONE="ru_RU.CP1251"
> LC_MEASUREMENT="ru_RU.CP1251"
> LC_IDENTIFICATION="ru_RU.CP1251"
> LC_ALL=
>
> После успешного логина в браузере наблюдаем:
>
> Warning: ereg(): Invalid collation character in 
> /var/www/html/squirrelmail/functions/decode/koi8-r.php on line 48
>
> Warning: ereg(): Invalid collation character in 
> /var/www/html/squirrelmail/functions/decode/koi8-r.php on line 48
> ...........
>
> И так многократно.
>
> В принципе, то же самое у меня было и на версии 1.4.2
>
>
Доброго времени суток!
Я сделал злобный хак вот в этом месте в файле 
/var/www/html/squirrelmail/functions/decode/koi8-r.php
    /* Only do the slow convert if there are 8-bit characters */
    /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */
#    if (! ereg("[\200-\237]", $string) and ! ereg("[\241-\377]", $string) )
#        return $string;
Закоментировал две строчки #
И в файле конфига  /etc/squirrelmail/config.php $default_charset=utf-8 у 
меня.
Вроде работает, мне надо было проблему быстро решить, а вообще надо багу 
вешать мне кажется.
С уважением.


  reply	other threads:[~2004-06-28  9:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-28  3:32 Yuri V. Anikin
2004-06-28  9:19 ` Alexander Markelov [this message]
2004-06-28 10:33   ` Yuri V. Anikin
2004-06-28 11:46   ` [sisyphus] " Michael Shigorin
2004-06-29  5:03   ` [sisyphus] " Yuri V. Anikin
2004-06-29  7:00     ` Alexander Markelov

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=40DFE2A3.3050109@13.net.ru \
    --to=ml@13.net.ru \
    --cc=sisyphus@altlinux.ru \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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