From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4 Description of problem: a2ps can't convert euc-jp text file into legal PostScript file. Version-Release number of selected component (if applicable): a2ps-4.13b-46 How reproducible: Always Steps to Reproduce: 1.Prepare an euc-jp text file. I use example_euc.txt which include 2 Kanji characters, 0xb4c1 0xbbfa 0x0a (i.e. Kanji in Kanji character) in the following example. 2. Convert into a PostScript file. LANG=ja_JP.eucJP /usr/bin/a2ps --encoding=euc-jp -o fc4out.ps example_euc.txt 3. Check fc4out.ps Actual Results: The PostScript file includes a wrong octal representation of the input. If you use the above example input, you'll see the following line in the PostScript file: (\301\372) p n Expected Results: If you use the above example input, you must see the following line in the Poscript file: (\264\301\273\372) p n since 0xb4 is 0264 in octal, 0xc1 is 0301 in octal, and so on. Additional info: a2ps in FC2 works fine so that I suspect something has been changed between the two versions of a2ps.
I, too, see this problem. And when I downgrade to the FC3 package (a2ps-4.13b- 41.i386.rpm), it works correctly.
euc-kr also have this problem and I found that, when I compile it with $ rpm -bp a2ps.spec $ cd BUILD/a2ps-1.13.x $ make a2ps works correctly :( I think it is gcc related things, when I compile a2ps with default CFLAGS, it works correctly but with the RPM compiler options it fails.
Does this problem still occur?
Yes. The current version in FC5, a2ps-4.13b-49 gives the same result. I have'nt check the one in FC6-test?, though.
(In reply to comment #4) > Yes. The current version in FC5, a2ps-4.13b-49 gives the same result. > I have'nt check the one in FC6-test?, though. I just checked a2ps in FC6 (a2ps-4.13b-57). The result is the same.
FWIW, paps works fine with my testing. Could you attach the test file you're using please?
Think I've found the problem. Please watch for an updates-testing package..
Created attachment 139426 [details] test file that includes euc-jp characters Anyway, here's my test file.
The test update is available now: https://www.redhat.com/archives/fedora-test-list/2006-October/msg00875.html
The test update works fine. Thanks.
Fixed in update: a2ps-4.13b-57.fc6.3