[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pic2plot coredumps on latin1 chars in Times-Roman
From: |
Ben |
Subject: |
pic2plot coredumps on latin1 chars in Times-Roman |
Date: |
Wed, 14 Mar 2001 04:29:46 -0500 (EST) |
Plotutils release: 2.4.1.
Operating System: NetBSD 1.5
Normally one can use Latin1 (eighth-bit set) characters in PIC files
to include special symbols (such as "copyright") in a way that both
pic2plot and groff will understand.
However, two adjacent high ASCII characters set in Times-Roman font
makes pic2plot coredump. Here is a sample file that does that:
.PS
"TM®©"
.PE
Save the above in to a file called bug.pic and run pic2plot like so:
pic2plot --display-type X --font-name Times-Roman bug.pic
Note that "®TM©" is okay while "TM®©" makes pic2plot fail. Also any
fonts other than Times-Roman (Times-Italic, for example) work fine.
Here is a backtrace of the error:
Program received signal SIGSEGV, Segmentation fault.
0x4840627d in strlen ()
(gdb) bt
#0 0x4840627d in strlen ()
#1 0x8075400 in ?? ()
#2 0x480d82b6 in _render_non_hershey_string (_plotter=0x8077000,
s=0x8084720 "TM®©", do_render=true, x_justify=99, y_justify=99)
at g_alabel.c:265
#3 0x480d803f in pl_alabel_r (_plotter=0x8077000, x_justify=99, y_justify=99,
s=0x80743c0 "TM®©") at g_alabel.c:116
#4 0x8058a47 in plot_output::text (this=0x8076000, address@hidden,
v=0x8072444, n=1, angle=0) at plot.cc:368
#5 0x8053ac6 in graphic_object::print_text (this=0x8076080) at object.cc:707
#6 0x80577fe in print_object_list (p=0x8076080) at object.cc:2032
#7 0x8057875 in print_picture (obj=0x8076080) at object.cc:2046
#8 0x805b63c in yyparse () at gram.yy:269
#9 0x8052451 in do_picture (fp=0x484789a0) at main.cc:724
#10 0x8051ec8 in do_file (filename=0xbfbfd7be "../../bug.pic") at main.cc:592
#11 0x8051cdf in main (argc=6, argv=0xbfbfd698) at main.cc:500
#12 0x8049b15 in ___start ()
Thanks,
Ben
P.S. Emacs Rmail blithely sends eight-bit characters in e-mail without
quoting them. I've never had an occasion where this didn't work, but
if you don't see the (R) and (C) characters, let me know and I'll
resend using a different mail user agent.
P.P.S. Remove "nospam" to reply.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- pic2plot coredumps on latin1 chars in Times-Roman,
Ben <=