mcpp eating last character of words - this breaks xrdb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mcpp (Ubuntu) |
Fix Released
|
High
|
Matthias Klose |
Bug Description
Binary package hint: mcpp
Note: this is not a duplicate of #33728, it is a new bug.
mcpp, when used with the -@old option like xrdb does, cuts off the last character of every but the last word in each line.
This breaks files like .Xresources:
rxvt*font: -misc-Atari ST 8x16 system font-medium-
becomes
rxvt*font -misc-Atar S 8x1 syste font-medium-
I see that the bug has been worked around by making xrdb no longer call mcpp with -@old (I noticed it during an upgrade, and xrdb hasn't been reconfigured yet when it happened). Still, mcpp is obviously broken, even when supplying C code:
$ echo "main() { return 0; }" | mcpp -@old
#line 1 "<stdin>"
main( retur 0 }
Assuming mcpp is a C preprocessor, this should not happen - this line is perfectly valid "old" C, and thus should be processed correctly by mcpp even in "old" mode.
Because the only program using mcpp has been reconfigured to work around this bug, I'd call this bug uncritical, but it should either be fixed or mcpp get removed and cpp used instead.
Related branches
Changed in mcpp: | |
assignee: | nobody → doko |
importance: | Undecided → High |
status: | New → Confirmed |
mcpp (2.6.4-1ubuntu2) gutsy; urgency=low
* Fix truncation of symbols in -@old mode (Kiyoshi Matsui). LP: #139910.
-- Matthias Klose <email address hidden> Tue, 18 Sep 2007 12:01:34 +0200