ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] I: xrdb и ресурс  Tranlations
Date: Sun, 22 Aug 2010 20:21:10 +0400
Message-ID: <20100822162110.GA6123@atlas.home> (raw)
In-Reply-To: <20100822153146.GD10929@altlinux.org>

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

On Sun, Aug 22, 2010 at 07:31:46PM +0400, Alexey I. Froloff wrote:
> На случай если кто пользуется xrdb и Translations (yes, I am from
> the past), имейте в виду, что оно работает немного не так, как
> пишут в этих ваших интернетах.  Или (что более вероятно),
> поведение зависит от наличия отсутствия установленного cpp.
> 
> Не работает (cpp установлен):
> 
> *Text*translations:	#override \
> 	<Key>Home: beginning-of-line() \n\
> 	<Key>KP_Home: beginning-of-line() \n\
> 	<Key>End: end-of-line() \n\
> 	<Key>KP_End: end-of-line()
> 
> Работает:
> 
> *Text*translations:	#override \\
> 	<Key>Home: beginning-of-line() \n\\
> 	<Key>KP_Home: beginning-of-line() \n\\
> 	<Key>End: end-of-line() \n\\
> 	<Key>KP_End: end-of-line()

Без установленного cpp пакет xrdb просто не установится.  А вот от
версии этого cpp результат действительно зависит - в версии 4.4 символ
конца строки в данном случае не удаляется:

$ printf 'a\\\n b\n' | cpp-4.4 -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
a
 b

В предыдущей версии было:

$ printf 'a\\\n b\n' | cpp-4.3 -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
a b

Но есть объезд:

$ printf 'a\\\n b\n' | cpp-4.4 -E -traditional-cpp -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
a b

Можно сделать, например, такую затычку:

$ cat ~/bin/xrdb 
#!/bin/sh
exec /usr/bin/xrdb -cpp 'cpp -traditional-cpp' "$@"

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

  reply	other threads:[~2010-08-22 16:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-22 15:31 Alexey I. Froloff
2010-08-22 16:21 ` Sergey Vlasov [this message]
2010-08-22 16:25   ` Dmitry V. Levin
2010-08-22 17:14     ` Sergey Vlasov
2010-08-22 17:57       ` Valery V. Inozemtsev

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=20100822162110.GA6123@atlas.home \
    --to=vsu@altlinux.ru \
    --cc=sisyphus@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 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