public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Xrdb 1.1.0 =  1 error in preprocessor - cygwin17 directory?  Illegal control character
@ 2014-01-21 16:16 Paul Becker
  2014-01-21 19:18 ` Yaakov (Cygwin/X)
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Becker @ 2014-01-21 16:16 UTC (permalink / raw)
  To: cygwin-xfree

I updated my Cygwin today (1.7.27-2, 32bit cygwin on Windows 7 64bit).
I run the Cygwin/X Xserver 1.14.5-1
I get  errors with xrdb (1.1.0), and when I go back one version of xrdb (1.0.9), it works fine again.
And xrdb seems to think I installed Cygwin in c:\cygwin17, but my Cygwin is installed into c:\cygwin .

when I run xrdb now I get this:

% xrdb.exe -load $HOME/.Xresources
Can't open input file "/cygdrive/C/cygwin17/home/pbecker/.Xresources".
1 error in preprocessor.

% xrdb.exe -load ~/.Xresources
Can't open input file "/cygdrive/C/cygwin17/home/pbecker/.Xresources".
1 error in preprocessor.

% pwd
/home/pbecker

% echo $HOME
/home/pbecker

% echo ~
/home/pbecker

% cygpath -aw .
C:\cygwin\home\pbecker

% xrdb -load  ./.Xresources
/home/pbecker/.Xresources:140: warning: Illegal control character 0lx1a in quotation
    XTerm*VT100.Translations:       #override      Shift <Key>Home:            scroll-back(2000)\n    Shift <Key>End:           scroll-forw(2000)\n    Shift <Key>Prior:                scroll-back(1,page)\n    Shift <Key>Next:              scroll-forw(1,page)\n    Shift <Key>Up:          scroll-back(1)\n    Shift <Key>Down:            scroll-forw(1)\n    Alt <Key>Home:              scroll-back(2000)\n    Alt <Key>End:            scroll-forw(2000)\n    Alt <Key>Prior:         scroll-back(1,page)\n    Alt <Key>Next:          scroll-forw(1,page)\n    Alt <Key>Up:           scroll-back(1)\n    Alt <Key>Down:              scroll-forw(1)\n    <Key>Insert:                insert-selection(PRIMARY, CUT_BUFFER0)\n    Shift <Key>F12:             string("\n~.")\n    Alt <Key>F12:               string("\n~.")\n    <Key>F12:                   string("\n~")\n

% xrdb -load /cygdrive/c/cygwin/home/pbecker/.Xresources
/cygdrive/c/cygwin/home/pbecker/.Xresources:140: warning: Illegal control character 0lx1a in quotation
    XTerm*VT100.Translations:       #override      Shift <Key>Home:            scroll-back(2000)\n    Shift <Key>End:           scroll-forw(2000)\n    Shift <Key>Prior:                scroll-back(1,page)\n    Shift <Key>Next:              scroll-forw(1,page)\n    Shift <Key>Up:          scroll-back(1)\n    Shift <Key>Down:            scroll-forw(1)\n    Alt <Key>Home:              scroll-back(2000)\n    Alt <Key>End:            scroll-forw(2000)\n    Alt <Key>Prior:         scroll-back(1,page)\n    Alt <Key>Next:          scroll-forw(1,page)\n    Alt <Key>Up:           scroll-back(1)\n    Alt <Key>Down:              scroll-forw(1)\n    <Key>Insert:                insert-selection(PRIMARY, CUT_BUFFER0)\n    Shift <Key>F12:             string("\n~.")\n    Alt <Key>F12:               string("\n~.")\n    <Key>F12:                   string("\n~")\n

% ln -s /cygdrive/c/cygwin /cygdrive/c/cygwin17

% xrdb -load ~/.Xresources
/cygdrive/C/cygwin17/home/pbecker/.Xresources:140: warning: Illegal control character 0lx1a in quotation
    XTerm*VT100.Translations:       #override      Shift <Key>Home:            scroll-back(2000)\n    Shift <Key>End:           scroll-forw(2000)\n    Shift <Key>Prior:                scroll-back(1,page)\n    Shift <Key>Next:              scroll-forw(1,page)\n    Shift <Key>Up:          scroll-back(1)\n    Shift <Key>Down:            scroll-forw(1)\n    Alt <Key>Home:              scroll-back(2000)\n    Alt <Key>End:            scroll-forw(2000)\n    Alt <Key>Prior:         scroll-back(1,page)\n    Alt <Key>Next:          scroll-forw(1,page)\n    Alt <Key>Up:           scroll-back(1)\n    Alt <Key>Down:              scroll-forw(1)\n    <Key>Insert:                insert-selection(PRIMARY, CUT_BUFFER0)\n    Shift <Key>F12:             string("\n~.")\n    Alt <Key>F12:               string("\n~.")\n    <Key>F12:                   string("\n~")\n

% xrdb -version
xrdb 1.1.0

My .Xresources file has not changed in years.
I do have a control-Z on line 140 in .Xresources  that has never been a problem before.

XTerm*VT100.Translations:       \
#override  \
    Shift <Key>Home:            scroll-back(2000)\n\
    Shift <Key>End:             scroll-forw(2000)\n\
    Shift <Key>Prior:           scroll-back(1,page)\n\
    Shift <Key>Next:            scroll-forw(1,page)\n\
    Shift <Key>Up:              scroll-back(1)\n\
    Shift <Key>Down:            scroll-forw(1)\n\
    Alt <Key>Home:              scroll-back(2000)\n\
    Alt <Key>End:               scroll-forw(2000)\n\
    Alt <Key>Prior:             scroll-back(1,page)\n\
    Alt <Key>Next:              scroll-forw(1,page)\n\
    Alt <Key>Up:                scroll-back(1)\n\
    Alt <Key>Down:              scroll-forw(1)\n\
    <Key>Insert:                insert-selection(PRIMARY, CUT_BUFFER0)\n\
    Shift <Key>F12:             string("\n~.")\n\
    Alt <Key>F12:               string("\n~.")\n\
    <Key>F12:                   string("\n~^Z")\n


xrdb 1.0.9 seems to work fine for me with no output, so I went back to it and all is well.
 (and this version of xrdb does not have a -version option)

I hope I am not the only one seeing this.

thank you for your time.

--
Paul Becker


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Xrdb 1.1.0 =  1 error in preprocessor - cygwin17 directory?  Illegal control character
  2014-01-21 16:16 Xrdb 1.1.0 = 1 error in preprocessor - cygwin17 directory? Illegal control character Paul Becker
@ 2014-01-21 19:18 ` Yaakov (Cygwin/X)
  0 siblings, 0 replies; 2+ messages in thread
From: Yaakov (Cygwin/X) @ 2014-01-21 19:18 UTC (permalink / raw)
  To: cygwin-xfree

On 2014-01-21 10:16, Paul Becker wrote:
> And xrdb seems to think I installed Cygwin in c:\cygwin17, but my Cygwin is installed into c:\cygwin .
> when I run xrdb now I get this:
>
> % xrdb.exe -load $HOME/.Xresources
> Can't open input file "/cygdrive/C/cygwin17/home/pbecker/.Xresources".
> 1 error in preprocessor.
>
> % xrdb.exe -load ~/.Xresources
> Can't open input file "/cygdrive/C/cygwin17/home/pbecker/.Xresources".
> 1 error in preprocessor.

This is fixed in mcpp-2.7.2-2, which will be hitting the mirrors soon.

> % xrdb -load  ./.Xresources
> /home/pbecker/.Xresources:140: warning: Illegal control character 0lx1a in quotation

This is a separate issue, but note that it is just a warning; the 
resource settings are still loaded and work as before.  IIUC, the 
"correct" way to fix this would be to change string("\n~^Z") to 
string("\n~")string(0x1a), but I haven't tested this.

Yaakov


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-21 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-21 16:16 Xrdb 1.1.0 = 1 error in preprocessor - cygwin17 directory? Illegal control character Paul Becker
2014-01-21 19:18 ` Yaakov (Cygwin/X)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).