bugGNU roff - Bugs: bug #48986, gropdf remaps characters to...

 
 

bug #48986: gropdf remaps characters to position 13

Submitter:  Christopher Yeleighton <yecril71pl>
Submitted:  Sat 03 Sep 2016 07:58:32 AM UTC
   
 
Category:  Driver gropdf Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  deri
Open/Closed:  Closed Planned Release:  1.22.4
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Jun 2022 06:37:19 PM UTC, comment #2: 


commit 4b980242c26d6369cf988a9bd4694efdd50320ec
Author: Deri James <deri@chuzzlewit.myzen.co.uk>
Date:   Tue Nov 1 23:05:33 2016 +0000

    gropdf remaps characters to position 13 (#48986)

    * src/devices/gropdf/gropdf: Do not remap anything to chr(13)


G. Branden Robinson <gbranden>
Group administrator
Tue 01 Nov 2016 10:59:06 PM UTC, comment #1: 

I have accepted your patch, thank you. It will shortly be included in the repository.

Deri James <deri>
Group Member
Sat 03 Sep 2016 07:58:32 AM UTC, original submission:  

gropdf remaps characters to position 13 and Adobe Reader does not like that.  It displays the character at position 10 instead.

To reproduce:
{
   env LANG=pl_PL.UTF-8 MANROFFOPT='-fU-T' \
   man -Tpdf man >man.pdf; }

Open man.pdf with Adobe Reader DC 2015.

To fix:

--- gropdf,orig 2016-09-03 09:41:40.596479800 +0200
+++ gropdf      2016-09-03 09:42:42.377590400 +0200
@@ -3215,7 +3215,7 @@

     foreach my $un (2..$#{$fnt->{GNO}})
     {
-       $unused=$un,last if $fnt->{GNO}->[$un] eq '/.notdef';
+       $unused=$un,last if $fnt->{GNO}->[$un] eq '/.notdef' and $un ne 14;
     }

     if (--$unused <= 255)

Christopher Yeleighton <yecril71pl>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #38422:  man.pdf added by yecril71pl (370KiB - application/pdf - Original and fixed PDF)
file #38421:  man,orig.pdf added by yecril71pl (370KiB - application/pdf - Original and fixed PDF)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by wl (Updated the item)
  • -email is unavailable- added by deri (Posted a comment)
  • -email is unavailable- added by yecril71pl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-15 gbranden CategoryNone Driver gropdf
    2016-11-19 wl Planned ReleaseNone 1.22.4
    2016-11-19 wl StatusNone Fixed
        Assigned toNone deri
    2016-11-01 deri Open/ClosedOpen Closed
    2016-09-03 yecril71pl Attached File- Added man,orig.pdf, #38421
        Attached File- Added man.pdf, #38422

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code