ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Stanislav Ievlev <inger@altlinux.org>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] g77 & буква 'я'
Date: Wed, 7 Apr 2004 18:12:14 +0400
Message-ID: <20040407141214.GB29674@basalt.office.altlinux.org> (raw)
In-Reply-To: <200404061812.23167.serpiph@nikiet.ru>

On Tue, Apr 06, 2004 at 06:12:23PM +0400, Epiphanov Sergei wrote:
> Всем привет!
Это проблема g77.
Код 'я' в cp1251  = 255 ;)

> 
> Работаю сейчас с Фортраном, собираю программы под g77 и наткнулся на такую 
> странность: буква 'я' не дает нормально работать! А именно: в такой строке 
> компилятор выдает ошибку `нет закрывающей кавычки':
> 
> write(*,*)'я'
> 
> а в такой ошибки нет:
> 
> write(*,*)'t'
> 
> При этом буква 'я' не только пропадает из выводимого текста, но и при этом 
> тянет за собой следующий за ней символ. Я нахожусь в кодировке CP1251, 
> поэтому её код равен 255. Судя по всему, g77 воспринимает её как Unicode 
> со всеми вытекающими последствиями. При этом gcc в программе
> 
> #include <stdio.h>
> 
> int main (void)
> {
> 	char s[2]={'я'};
> 	puts(s);
> }
> 
> ни на что не ругается и программа работает как надо.
> $ 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=
> $
> -- 
> С уважением, Епифанов Сергей
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@altlinux.ru
> http://lists.altlinux.ru/mailman/listinfo/sisyphus


      parent reply	other threads:[~2004-04-07 14:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06 14:12 Epiphanov Sergei
2004-04-07  7:55 ` Sashnov Alexander
2004-04-07  8:11   ` Epiphanov Sergei
2004-04-07 12:01     ` Andrey Rahmatullin
2004-04-07 13:38       ` Epiphanov Sergei
2004-04-07 14:12 ` Stanislav Ievlev [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=20040407141214.GB29674@basalt.office.altlinux.org \
    --to=inger@altlinux.org \
    --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