* [sisyphus] I: xrdb и ресурс Tranlations
@ 2010-08-22 15:31 Alexey I. Froloff
2010-08-22 16:21 ` Sergey Vlasov
0 siblings, 1 reply; 5+ messages in thread
From: Alexey I. Froloff @ 2010-08-22 15:31 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
На случай если кто пользуется 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()
--
Regards, --
Sir Raorn. --- http://thousandsofhate.blogspot.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] I: xrdb и ресурс Tranlations
2010-08-22 15:31 [sisyphus] I: xrdb и ресурс Tranlations Alexey I. Froloff
@ 2010-08-22 16:21 ` Sergey Vlasov
2010-08-22 16:25 ` Dmitry V. Levin
0 siblings, 1 reply; 5+ messages in thread
From: Sergey Vlasov @ 2010-08-22 16:21 UTC (permalink / raw)
To: sisyphus
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] I: xrdb и ресурс Tranlations
2010-08-22 16:21 ` Sergey Vlasov
@ 2010-08-22 16:25 ` Dmitry V. Levin
2010-08-22 17:14 ` Sergey Vlasov
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry V. Levin @ 2010-08-22 16:25 UTC (permalink / raw)
To: ALT Linux Sisyphus mailing list
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
On Sun, Aug 22, 2010 at 08:21:10PM +0400, Sergey Vlasov wrote:
> Можно сделать, например, такую затычку:
>
> $ cat ~/bin/xrdb
> #!/bin/sh
> exec /usr/bin/xrdb -cpp 'cpp -traditional-cpp' "$@"
А можно исправить /usr/bin/xrdb, чтобы он запускал cpp правильно.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] I: xrdb и ресурс Tranlations
2010-08-22 16:25 ` Dmitry V. Levin
@ 2010-08-22 17:14 ` Sergey Vlasov
2010-08-22 17:57 ` Valery V. Inozemtsev
0 siblings, 1 reply; 5+ messages in thread
From: Sergey Vlasov @ 2010-08-22 17:14 UTC (permalink / raw)
To: sisyphus
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
On Sun, Aug 22, 2010 at 08:25:04PM +0400, Dmitry V. Levin wrote:
> On Sun, Aug 22, 2010 at 08:21:10PM +0400, Sergey Vlasov wrote:
> > Можно сделать, например, такую затычку:
> >
> > $ cat ~/bin/xrdb
> > #!/bin/sh
> > exec /usr/bin/xrdb -cpp 'cpp -traditional-cpp' "$@"
>
> А можно исправить /usr/bin/xrdb, чтобы он запускал cpp правильно.
Действительно:
https://bugzilla.novell.com/show_bug.cgi?id=615036
(и там изменение поведения gcc починили именно добавлением опции
-traditional-cpp).
Заодно стоит его и обновить - 1.0.6 на дворе.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] I: xrdb и ресурс Tranlations
2010-08-22 17:14 ` Sergey Vlasov
@ 2010-08-22 17:57 ` Valery V. Inozemtsev
0 siblings, 0 replies; 5+ messages in thread
From: Valery V. Inozemtsev @ 2010-08-22 17:57 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
[-- Attachment #1: Type: text/plain, Size: 875 bytes --]
В Вск, 22/08/2010 в 21:14 +0400, Sergey Vlasov пишет:
> On Sun, Aug 22, 2010 at 08:25:04PM +0400, Dmitry V. Levin wrote:
> > On Sun, Aug 22, 2010 at 08:21:10PM +0400, Sergey Vlasov wrote:
> > > Можно сделать, например, такую затычку:
> > >
> > > $ cat ~/bin/xrdb
> > > #!/bin/sh
> > > exec /usr/bin/xrdb -cpp 'cpp -traditional-cpp' "$@"
> >
> > А можно исправить /usr/bin/xrdb, чтобы он запускал cpp правильно.
>
> Действительно:
>
> https://bugzilla.novell.com/show_bug.cgi?id=615036
>
> (и там изменение поведения gcc починили именно добавлением опции
> -traditional-cpp).
>
> Заодно стоит его и обновить - 1.0.6 на дворе.
ща починю
--
Valery V. Inozemtsev
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-22 17:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-22 15:31 [sisyphus] I: xrdb и ресурс Tranlations Alexey I. Froloff
2010-08-22 16:21 ` Sergey Vlasov
2010-08-22 16:25 ` Dmitry V. Levin
2010-08-22 17:14 ` Sergey Vlasov
2010-08-22 17:57 ` Valery V. Inozemtsev
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