[Bug 615036] New: X resource handling/xrdb broken
http://bugzilla.novell.com/show_bug.cgi?id=615036 http://bugzilla.novell.com/show_bug.cgi?id=615036#c0 Summary: X resource handling/xrdb broken Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: lnussel@novell.com QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- I have this in my .Xdefaults (file unchanged since 2001): 204 mutt*vt100.translations: #override\n\ 205 Shift<Btn4Down>,<Btn4Up>:string("^[OD")\n\ 206 Shift<Btn5Down>,<Btn5Up>:string("^[OC")\n\ 207 Ctrl<Btn4Down>,<Btn4Up>:string("^[[6~")\n\ 208 Ctrl<Btn5Down>,<Btn5Up>:string("^[[6~")\n\ 209 <Btn4Down>,<Btn4Up>: string("^[OA")\n\ 210 <Btn5Down>,<Btn5Up>: string("^[OB") Ie this is one resource, however xrdb -q shows that it ends up as multiple resources and therefore doesn't work: $ xrdb -q|grep 'Btn\|mutt' <Btn4Down>,<Btn4Up>: string("A")\n <Btn5Down>,<Btn5Up>: string("B") Ctrl<Btn4Down>,<Btn4Up>: string("")\n Ctrl<Btn5Down>,<Btn5Up>: string("")\n Shift<Btn4Down>,<Btn4Up>: string("D")\n Shift<Btn5Down>,<Btn5Up>: string("C")\n mutt*vt100.translations: #override\n -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c1
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c2
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c3
--- Comment #3 from Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c4
--- Comment #4 from Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c5
--- Comment #5 from Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c6
Ludwig Nussel
Hmm. Is this a regression?
Yes. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c7
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c8
--- Comment #8 from Stefan Dirsch
11.1 ---- ~> cpp .Xdefaults.mutt # 1 ".Xdefaults.mutt" # 1 "<built-in>" # 1 "<command-line>" # 1 ".Xdefaults.mutt" mutt*vt100.translations: #override\n Shift<Btn4Down>,<Btn4Up>:string("^[OD")\n Shift<Btn5Down>,<Btn5Up>:string("^[OC")\n Ctrl<Btn4Down>,<Btn4Up>:string("^[[6~")\n Ctrl<Btn5Down>,<Btn5Up>:string("^[[6~")\n <Btn4Down>,<Btn4Up>: string("^[OA")\n <Btn5Down>,<Btn5Up>: string("^[OB")
That should have been *one* line. Credits go to Bugzilla ... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c9
--- Comment #9 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c10
--- Comment #10 from Stefan Dirsch
No, the change is done on purpose to preserve line and column numbers for diagnostic purposes.
Wonderful. So there is no switch to get back the old behaviour?!? Either you/upstream add such a switch or that one is becoming a WONTFIX from my side. I kind of can't believe that other distributors are not stumbling across that issue. Or they didn't notice it yet. BTW, when happened that change in cpp? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c11
--- Comment #11 from Ludwig Nussel
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c12
--- Comment #12 from Richard Guenther
(In reply to comment #9)
No, the change is done on purpose to preserve line and column numbers for diagnostic purposes.
Wonderful. So there is no switch to get back the old behaviour?!? Either you/upstream add such a switch or that one is becoming a WONTFIX from my side.
I kind of can't believe that other distributors are not stumbling across that issue. Or they didn't notice it yet. BTW, when happened that change in cpp?
It happened for GCC 4.5 which I think we are the first to pick up. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c13
--- Comment #13 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c14
--- Comment #14 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c15
--- Comment #15 from Stefan Dirsch
Another way of getting the lines concatenated is to make it a multi-line string by quoting it with ""s
This is possible without changing the already existing X resources on the system? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c16
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c17
--- Comment #17 from Richard Guenther
Fixed now by using "-traditional-cpp" option (SR #42052).
42052 State:new By:sndirsch When:2010-06-25T14:30:24 submit: X11:XOrg/xorg-x11 -> openSUSE:Factory Descr: - xrdb-traditional-cpp.diff * run cpp with option "-traditional-cpp" to fix multiline X resources (bnc #615036)
I bet you will run into the same issues I run when changing /lib/cpp (does xrdb use /lib/cpp?) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=615036
http://bugzilla.novell.com/show_bug.cgi?id=615036#c18
--- Comment #18 from Stefan Dirsch
I bet you will run into the same issues I run when changing /lib/cpp (does xrdb use /lib/cpp?)
xrdb used /usr/bin/cpp - by default, i.e. unless you set "-cpp" option. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=615036
https://bugzilla.novell.com/show_bug.cgi?id=615036#c19
--- Comment #19 from Stefan Dirsch
From reading the cpp manual pages for me it wasn't and still isn't obvious that "-P" would be sufficient to address this problem.
-P Inhibit generation of linemarkers in the output from the preprocessor. This might be useful when running the preprocessor on something that is not C code, and will be sent to a program which might be confused by the linemarkers. It doesn't mention the continuation character at all. :-( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com