Hello,

It seems that your printcap file is correct. I have HP LaserJet P2015 printer that should be similar yours I guess. Please check Settings / PCL5e / Symbol set option. You have to set this option to PC866CYR to print plain text in Cyrillic IBM866 encoding (default Russian encoding for QNX4 console). Please see attached image. If this won't work then send me example of file that you're printing.

Respectfully,
Oleg

30 мая 2015 г., в 18:35, wenwei wenwei <community-noreply@qnx.com> написал:

Our company IPC using QNX4.25 operating system and licenses all installation, equipped with laser network printer HP P2055dn a (Russian character, no Chinese font).
Now want to use LPD to print a TXT file, the contents of the txt file is russian. But print garbled, and wrap is not correct. If the txt file is English, you can print correctly.
A self-examination of the printer, can play a normal Russian character. Did I have a mistake in setting the QNX? Or I am not configured?
Specific methods are as follows:
1, the normal use of the network card, the Ping printer (set the printer address is 192.168.16.53)
2, /etc/printcap:
#
P2055dn|P2055dn:\
: rm=192.168.16.53:rp=p2055dn:\
: sd=/usr/spool/output/p2055dn:sh=false:
3, /etc/config/lpsrvr:
#
Example LPSRVR configuration file #
#
This example creates a single device # called "/dev/spool/ps.phs" which
Will support multiple Photon print streams # and give them
At a time to # one the physical Postscript printer connected to "/dev/par1".
#
# Use "lpsrvr & -fThisFile" to make it all happen (put in sysinit)
[]
Define QNX name of this print # spooler
# sp=/qnx/PhSpool
Specify where spool files are kept # (lpsrvr will delete them for you)
# cd=/tmp
[Phps]
Use the Postscript Filter and Feed # into Raw Queue
Ta=nullpt
-l1 co=/usr/photon/bin/Pp.ps $(SPFILE) -Pp2055dn /usr/ucb/lpr
[Phpcl]
Use the PCL Filter and Feed # into Raw Queue
Ta=nullpt
Co=/usr/photon/bin/Pp.pcl $(SPFILE) -Pp2055dn /usr/ucb/lpr
[Phpsc]
Use the Postscript Filter and Feed # into Raw Queue
Ta=nullpt
-l1 co=/usr/photon/bin/Pp.ps $(SPFILE) -Pc2025dn /usr/ucb/lpr
[Phpclc]
Use the PCL Filter and Feed # into Raw Queue
Ta=nullpt
Co=/usr/photon/bin/Pp.pcl $(SPFILE) -Pc2025dn /usr/ucb/lpr
[t]
Ta=nullpt
-Pp2055dn co=/usr/ucb/lpr $(SPFILE)
[tfake]
Co=cat "$(SPFILE)" "$(device)" "
Ta=lptl0
[-lptl]
Dv=/dev/par1
[-lptl0]
Dv=/.registry.log
[-nullpt]
Dv=/dev/null
4, running print command
#lpsrvr &
#lpd &
-Pp2055dn /tmp/1.txt #lpr
I don't know that the /etc/config/sysinit.8 settings will also have a impact, I post it all up
/bin/Fsys #Image:
/bin/Fsys.eide Fsys -Ndsk0 -n0=hd0. -n5=cd0. Eide -a1f0 -i14 #Image:
/bin/mount -p /dev/hd0.0 /dev/hd0.0t77 #Image: /
/bin/sinit TERM=qnxm #Image:
NODE=48 #export
KBD=ru_RU_102.kbd export
ABLANG=ru export
TZ=mst-08 M3.5.0/2, M10.5.0/2, export
-l at /bin/rtc
Dev &
Pipe &
-Q -n6 Dev.ansi &
/dev/con1 reopen
-A /dev/console=/dev/con1 prefix
Dev.par &
-n16 Dev.pty &
# /bin/Fsys.floppy -a3f0 -i6
# /cd=/dev/cd0.0 & /bin/Iso9660fsys
# Define the default CD Rom
# /bin/prefix -A /cd=//0/cd0.0
# mount /dev/fd0 /fd/fd0
-P chkfsys /
/bin/mcyr &
-r license
Nameloc &
LPSRVR=/qnx/spooler export
-f1 /etc/config/cfont/unim.f8 cfont
-f0 /etc/config/cfont/vga cfont!.f16
-a -d Mqueue &
LOGNAME=mag export
/etc/netstart
-c -t "-p -f root login" /dev/con1 tinit &
-c -T "-p -f root login" /dev/con[2-6] tinit &



_______________________________________________

QNX4 Community Support
http://community.qnx.com/sf/go/post113878
To cancel your subscription to this discussion, please e-mail qnx4-community-unsubscribe@community.qnx.com