[Bug 215754] New: enscript is locale sensitive
https://bugzilla.novell.com/show_bug.cgi?id=215754 Summary: enscript is locale sensitive Product: openSUSE 10.2 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bjoern@cs.tu-berlin.de QAContact: qa@suse.de The enscript program does not work right in all locales. Especially it does not work right in the default UTF-8 locale settings. The problem only occurs together with the "-E" switch of enscript. "-E" is a parameter with an optional argument. It is documented as follows (from man page): -E[lang], --highlight[=lang] Highlight source code by creating a special input filter with the states program. The optional argument lang specifies the language to highlight. As a default the states makes an edu- cated guess. You can print a short description of the supported highlighting languages and file formats with the command: enscript --help-highlight The highlighting rules are defined in the `/usr/share/enscript/st/*.st' files which can be edited to cre- ate highlighting definitions for new languages. Note! You can not use your own input filters with this option. A test case is attached. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 ------- Comment #1 from bjoern@cs.tu-berlin.de 2006-10-27 09:45 MST ------- Created an attachment (id=102853) --> (https://bugzilla.novell.com/attachment.cgi?id=102853&action=view) enscript test case for German and English and UTF-8 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |werner@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major Status|ASSIGNED |NEEDINFO Info Provider| |bjoern@cs.tu-berlin.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 ------- Comment #2 from bjoern@cs.tu-berlin.de 2006-11-01 02:55 MST ------- Which info do you need? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|bjoern@cs.tu-berlin.de | Resolution| |WONTFIX ------- Comment #3 from werner@novell.com 2006-11-02 03:26 MST ------- What I need is a enscript vers9ion which is able to handle UTF-8. The current version of enscript uses a wrapper script to be able to convert _one_ language provided in UTF-8 into the appropiate latin code because this is the only code which is usable with the enscript program its self. If you have a patch which makes enscript fully compatible with UTF-8 please reopen this bug. But be aware UTF-8 is highly complicated in comparision to any 8 bit character mode like latin-1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 bjoern@cs.tu-berlin.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | ------- Comment #4 from bjoern@cs.tu-berlin.de 2006-11-02 04:19 MST ------- Sorry, this is not what I mean. I know that enscript is not capable of printing UTF-8. The wrapper script therefore tries to convert UTF-8 data to ISO-8859-X. This is ok for me. The problem is, that the wrapper script does not work correctly. Enscript needs the option -E in a special form. So "-Ebash" is correct, but "-E bash" is not. Of course this violates the getopt() standard functionality. But the wrapper script uses getopt for changing the enscript arguments. I already found the problem in the wrapper script. I start "enscript" with a clean environment in trace mode: $ env -i HOME=$HOME LANG=de_DE.UTF-8 PATH=$PATH sh -x enscript -Ebash -o /dev/null /etc/skel/.bashrc [...] + CMDLINE=' -E '\''bash'\'' -o '\''/dev/null'\'' -- '\''/etc/skel/.bashrc'\''' [...] + enscript.bin -X ISO-8859-15 -E bash -o /dev/null /etc/skel/.bashrc So the problem is that we started with "-Ebash" and ended with "-E bash". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED ------- Comment #5 from werner@novell.com 2006-11-13 07:27 MST ------- Just fixed not only for -E but also for -C, -e, -H, amd -u. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=215754 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mohr@nist.gov ------- Comment #6 from werner@novell.com 2007-02-06 11:23 MST ------- *** Bug 242022 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com