bugGNU troff - Bugs: bug #29895, NCR above CHAR_MAX not supported...

 
 

bug #29895: NCR above CHAR_MAX not supported by grotty

Submitted by:  Christopher Yeleighton <yecril71pl>
Submitted on:  Sun 16 May 2010 04:40:24 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Werner LEMBERG <wl>
Open/Closed: ClosedPlanned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sun 23 May 2010 06:01:05 AM UTC, comment #6:

Now I understand what you mean with `magic'! Thanks for the report, I've fixed that in the CVS: grotty now checks whether the `unicode' keyword in the DESC file is present; it no longer checks the output device name directly.

And, ehem, preconv is now documented (or rather, mentioned) in groff.texinfo too. Normally, I always handle the man pages and groff.texinfo in parallel, but somehow I've failed to it recently.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sat 22 May 2010 08:21:27 PM UTC, comment #5:

I have not reviewed the current documentation because the Web documentation is broken (vide Bug #29891). I am not sure how to install groff without overwriting the system groff and without disconcerting the RPM. My request to upgrade groff on openSuSE has not made any progress yet.
However, after generating groff.html from the current sources, I can see that there is a new option "unicode" governing this. But it seems utf8 is still magic.
To test this, I made a symbolic link from devuni to devutf8. Here is what I got:

$echo 'Zażółć gęślą jaźń' | ./test-groff -k -Tutf8 | od -c

              1. Z a 305 274 303 263 305 202 304 207 g 304 231 305 233

0000020 l 304 205 j a 305 272 305 204 \n \n \n \n \n \n
0000040 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
*
0000120 \n \n \n \n \n \n \n \n \n \n \n \n
0000134

$echo 'Zażółć gęślą jaźń' | ./test-groff -k -Tuni | od -c

              1. Z a | 363 B \a

0000020 g 031 [ l 005 j a z D \n \n \n \n \n
0000040 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
*
0000120 \n \n \n \n \n \n \n \n \n \n \n \n \n
0000135

So the device name utf8 is magic, and it is not documented.

Also, the option '-k' that you advertised to me is not mentioned in the current groff.html, and neither is "preconv", although `groff -h` does mention it.

Christopher Yeleighton <yecril71pl>
Sat 22 May 2010 03:20:03 PM UTC, comment #4:

IMHO there is sufficient documentation – for version 1.20.1...
Have you actually looked that up?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sat 22 May 2010 10:18:53 AM UTC, comment #3:

I only wanted to express my surprise that utf8 is a magic name, i.e. there is more to it than just the contents of devutf8. This is probably invalid as an entry, although a word about that in the documentation would be nice.

Christopher Yeleighton <yecril71pl>
Fri 21 May 2010 02:55:08 PM UTC, comment #2:

It's not clear to me what you want to report. Using -Tutf8 while calling groff, you get clean UTF-8 output on the console. Where's the problem?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sun 16 May 2010 07:16:16 PM UTC, comment #1:

This is of course not true; however, it seems that the driver name must be utf8 for UTF-8 output to work. For example, copying the contents of devutf8 to devuni and running groff -Tuni produces spaces instead of UTF-8 for characters beyond ISO-Latin-1.

Christopher Yeleighton <yecril71pl>
Sun 16 May 2010 04:40:24 PM UTC, original submission:

The output of grotty is fixed ISO-8859-1 character set. There is no way to produce UTF-8 for direct consumption of the console; also, all numeric character references are stripped to 8 bits.

Christopher Yeleighton <yecril71pl>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by yecril71pl (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 23 May 2010 06:01:05 AM UTCwlStatusInvalid=>Fixed
      Open/ClosedOpen=>Closed
    Sat 22 May 2010 03:20:03 PM UTCwlStatusNeed Info=>Invalid
    Fri 21 May 2010 02:55:08 PM UTCwlStatusNone=>Need Info
      Assigned toNone=>wl

    Back to the top


    Powered by Savane 3.1-cleanup1