Dear Sir, I have linux Redhat 8.0. When I am trying to install Date::Manip as from tar.gz I get, Malformed UTF-8 character (byte 0xfe) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5902. Malformed UTF-8 character (unexpected non-continuation byte 0x6d, immediately after start byte 0xee) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5902. Malformed UTF-8 character (unexpected non-continuation byte 0x74, immediately after start byte 0xe3) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5902. Malformed UTF-8 character (1 byte, need 3, after start byte 0xe3) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5902. Malformed UTF-8 character (1 byte, need 3, after start byte 0xe3) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5903. Malformed UTF-8 character (unexpected non-continuation byte 0x6d, immediately after start byte 0xee) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5906. Malformed UTF-8 character (unexpected continuation byte 0xba, with no preceding start byte) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5926. Malformed UTF-8 character (unexpected continuation byte 0xba, with no preceding start byte) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5927. Malformed UTF-8 character (unexpected continuation byte 0xba, with no preceding start byte) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5929. Malformed UTF-8 character (unexpected continuation byte 0xba, with no preceding start byte) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5929. Malformed UTF-8 character (unexpected non-continuation byte 0x73, immediately after start byte 0xe3) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5930. Malformed UTF-8 character (unexpected non-continuation byte 0x7a, immediately after start byte 0xe3) at /usr/lib/perl5/vendor_perl/5.8.0/Date/Manip.pm line 5930. ....... ........ Md. Aftabuddin _____________________________ -----------------------------
Md. Aftabuddin <aftab@cubmb.ernet.in> wrote:
I have linux Redhat 8.0. When I am trying to install Date::Manip as from tar.gz I get,
Please try entering export LC_ALL=C as a command on its own before the installation. Let us know if it works. Gurus on the list: is this a problem with Date::Manip, Redhat or perl? -- MJR/slef My Opinion Only and possibly not of any group I know.
On Mon, 4 Aug 2003, MJ Ray wrote:
Gurus on the list: is this a problem with Date::Manip, Redhat or perl?
There are a lot of modules that aren't UTF-8 clean and Red Hat make all of the quite obvious by cutting UTF-8 on by default. Your export line simply cuts it back off. Red Hat's choice isn't bad, but it'll take some time for module authors to catch up. (Feel free to clean up the UTF-8 problems in your favorite module and send the module author a patch!) -- </chris> The death of democracy is not likely to be an assassination from ambush. It will be a slow extinction from apathy, indifference, and undernourishment. -Robert Maynard Hutchins, educator (1899-1977)
Dear Sir, I think the tar.gz is ok. because it is running on redhat 7.1 . In redhat 8.0 when I open Manip.pm with vi in the sed line I get the word 'converted' also in some line where russian or other countries month or day name is wtitten, I see no english alphabet but some some strange charecters, unlike in redhat 7.1 . Is it some font problem ? How to install fonts in linux ? Md. Aftabuddin _____________________________ ----------------------------- On Tue, 5 Aug 2003, Christopher Hicks wrote:
On Mon, 4 Aug 2003, MJ Ray wrote:
Gurus on the list: is this a problem with Date::Manip, Redhat or perl?
There are a lot of modules that aren't UTF-8 clean and Red Hat make all of the quite obvious by cutting UTF-8 on by default. Your export line simply cuts it back off. Red Hat's choice isn't bad, but it'll take some time for module authors to catch up. (Feel free to clean up the UTF-8 problems in your favorite module and send the module author a patch!)
-- </chris>
The death of democracy is not likely to be an assassination from ambush. It will be a slow extinction from apathy, indifference, and undernourishment. -Robert Maynard Hutchins, educator (1899-1977)
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Md. Aftabuddin <aftab@cubmb.ernet.in> wrote:
Is it some font problem ? How to install fonts in linux ?
No, it is a locale problem. What are locales? From "man perllocale": Perl can understand language-specific data via the standardized (ISO C, XPG4, POSIX 1.c) method called "the locale system". The locale system is controlled per application using one pragma, one function call, and several environment variables. The problem is that Date::Manip contains characters that are invalid in the "UTF-8" locale, which seems to be the default in RedHat 8. How could we fix this? Back to the manual page: The two quickest fixes are either to render Perl silent about any locale inconsistencies or to run Perl under the default locale "C". [...] Perl can be run under the "C" locale by setting the environment vari- able LC_ALL to "C". Running the command: export LC_ALL=C sets the variable mentioned. After using that command, you should be able to install Date::Manip by following the normal instructions. The command only works until you logout/close the window you were using, so it doesn't make any long-term change. Let us know if it works for you. I think you're seeing the same problem when you open the file in your text editor. It just can't display the character on the screen. Again, using the above command before starting the editor should let it. It's not your computer that is broken. It's just a "disagreement" between its settings and Date::Manip. Hopefully someone from this list can fix it. Unless someone tells me they've already done it, I'll let the author of Date::Manip know. -- MJR/slef My Opinion Only and possibly not of any group I know. http://mjr.towers.org.uk/ jabber://slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/ Thought: Edwin A Abbott wrote about trouble with Windows in 1884
When I issue locale command in redhat 8.0 I get the following:- [library@ibm2 library]$ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= When I issue locale command in redhat 7.1 I get the following:- [library@ibm2 library]$ locale LANG=en_US LC_CTYPE="en_US" LC_NUMERIC="en_US" LC_TIME="en_US" LC_COLLATE="en_US" LC_MONETARY="en_US" LC_MESSAGES="en_US" LC_PAPER="en_US" LC_NAME="en_US" LC_ADDRESS="en_US" LC_TELEPHONE="en_US" LC_MEASUREMENT="en_US" LC_IDENTIFICATION="en_US" LC_ALL= in both the cases LC_ALL= is blank so what to do, I think it is the problem for UTF-8 Md. Aftabuddin _____________________________ ----------------------------- On Mon, 4 Aug 2003, MJ Ray wrote:
Md. Aftabuddin <aftab@cubmb.ernet.in> wrote:
I have linux Redhat 8.0. When I am trying to install Date::Manip as from tar.gz I get,
Please try entering export LC_ALL=C as a command on its own before the installation. Let us know if it works.
Gurus on the list: is this a problem with Date::Manip, Redhat or perl?
-- MJR/slef My Opinion Only and possibly not of any group I know.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Md. Aftabuddin <aftab@cubmb.ernet.in> wrote:
in both the cases LC_ALL= is blank so what to do, I think it is the problem for UTF-8
So do I. LC_ALL overrides all others listed. Please set it as I say here:
On Mon, 4 Aug 2003, MJ Ray wrote:
Please try entering export LC_ALL=C as a command on its own before the installation. Let us know if it works.
then retry the installation commands and let me know the results. Why will you not do that? -- MJR/slef My Opinion Only and possibly not of any group I know. http://mjr.towers.org.uk/ jabber://slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/ Thought: Edwin A Abbott wrote about trouble with Windows in 1884
Mr. M. Aftabuddin, You are correct as MJ Ray has indicated: RedHat 8.0 and 9.0 have been configured to use UTF-8 aware locales. However many (most?) perl modules available on CPAN and elsewhere are not yet updated to use the perl 5.8.0 UTF-8 locales. To accomplish the install of some non-UTF-8 locales, you must override the UTF-8 locale. Date::Manip is one of many packages which requires this. I have had success by resetting the LANG= environment variable and have also occassionally used the LC_ALL= environment variable. You can override the locale permanently (NOT advised) or temporarily. Open a terminal window and enter the command MJ Ray suggested: [library@ibm2 library]# export LC_ALL=C You can then proceed to run cpan and install non-UTF-8 packages. When you log out of the terminal session the LC_ALL= variable will be reset to the system default as per your original installation choices. The underlying problem, which you asked about is that it is a problem of all three parties: RedHat, Date::Manip, and perl in general. A problem of synchronization of code between evolving generations. It is a growing pain. Time will correct this eventually. For now we must correct it ourselves as occasions arise. Mark, Perhaps a check for this sort of case could add a note to the missing packages information that is printed to terminal in the install script? Are you maintaining this script now? HTH, Erik -- Erik Stainsby Modern Alchemy http://www.modern-alchemy.net/ -- Discuss current issues in Library service design and delivery at http://library-usability.org/ On August 11, 2003 04:24 am, Md. Aftabuddin wrote:
When I issue locale command in redhat 8.0 I get the following:-
[library@ibm2 library]$ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
When I issue locale command in redhat 7.1 I get the following:-
[library@ibm2 library]$ locale LANG=en_US LC_CTYPE="en_US" LC_NUMERIC="en_US" LC_TIME="en_US" LC_COLLATE="en_US" LC_MONETARY="en_US" LC_MESSAGES="en_US" LC_PAPER="en_US" LC_NAME="en_US" LC_ADDRESS="en_US" LC_TELEPHONE="en_US" LC_MEASUREMENT="en_US" LC_IDENTIFICATION="en_US" LC_ALL=
in both the cases LC_ALL= is blank so what to do, I think it is the problem for UTF-8
Md. Aftabuddin _____________________________
-----------------------------
On Mon, 4 Aug 2003, MJ Ray wrote:
Md. Aftabuddin <aftab@cubmb.ernet.in> wrote:
I have linux Redhat 8.0. When I am trying to install Date::Manip as from tar.gz I get,
Please try entering export LC_ALL=C as a command on its own before the installation. Let us know if it works.
Gurus on the list: is this a problem with Date::Manip, Redhat or perl?
-- MJR/slef My Opinion Only and possibly not of any group I know.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Erik Stainsby <erik.stainsby@modern-alchemy.net> wrote:
Perhaps a check for this sort of case could add a note to the missing packages information that is printed to terminal in the install script? Are you maintaining this script now?
Yes. I'll file a bug report/enhancement request for it. -- MJR/slef My Opinion Only and possibly not of any group I know.
participants (4)
-
Christopher Hicks -
Erik Stainsby -
Md. Aftabuddin -
MJ Ray