Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: smeghead on July 27, 2013, 02:56:48 PM

Title: midnight commander under putty
Post by: smeghead on July 27, 2013, 02:56:48 PM
This is a quick heads up.

With the most recent updates in V8 the locale attribute within SME has changed from en_US to en_US.UTF-8.

This change means that Putty sessions no longer render Unicode line drawing correctly with the default translation of ISO-8859-1:1998 (Latin-1, West Europe) for us English speakers; the translation must be changed to UTF-8 to correct this.

These settings should be saved to a Putty profile along with the usual server connection info.

HTH
Title: Re: midnight commander under putty
Post by: piran on July 27, 2013, 06:30:56 PM
So THAT's what it was... I'd already worked out
I now needed to use UTF but assumed I'd messed
something up somewhere else to cause the odd
change. Thank you for that clarification.
Title: Re: midnight commander under putty
Post by: janet on July 28, 2013, 04:57:18 AM
For all,

Quote
These settings should be saved to a Putty profile along with the usual server connection info.

More specifically done by:
Opening Putty
Loading the required Saved Session eg myserver
Edit the settings by selecting from the Category listing on the left
Window
 Translation
then select UTF-8 from the pull down menu for Character set translation on received data
Then click Session category & click Save

Test by logging in and opening midnight commander
ie type mc
Title: Re: midnight commander under putty
Post by: smeghead on July 29, 2013, 09:15:24 AM
.. I've now found that this fixes Putty but other stuff doesn't display well, fire up iptraf & it's like Putty was before the UTF-8 tweak.

I have found that if I set the translation to VSCII then iptraf is fine, but Putty is back to being a mess; the line drawing characters work if set to either Unicode or ANSI/OEM for VSCII ot UTF-8, but only in an either/or situation.

Looks like I'll need to post a bug & get the devs to take a look.
Title: Re: midnight commander under putty
Post by: Brave Dave on August 01, 2013, 11:59:01 AM
Outside of SME (haven't tested this here)

I edit .bash_profile and add;

LANG=en_US

export PATH LANG
Title: Re: midnight commander under putty
Post by: janet on August 01, 2013, 09:34:12 PM
Brave Dave

Quote
I edit .bash_profile and add;
LANG=en_US
export PATH LANG

Yes changing that allows both iptraf & mc to display correctly.
Note to leave the original Putty setting unchanged ie
Window
 Translation
Select ISO-8859-1:1998 (Latin-1, West Europe) from the pull down menu for Character set translation on received data

Thanks
Title: Re: midnight commander under putty
Post by: janet on August 01, 2013, 09:41:25 PM
smeghead

Quote
Looks like I'll need to post a bug & get the devs to take a look.

Did you do this, what is the bug number ?
Refer my last post re Daves fix, which works.
This fix or some other fix needs to be implemented by devs, & the only way they will know about it is if a bug report is posted.
Title: Re: midnight commander under putty
Post by: smeghead on August 02, 2013, 05:19:32 AM
http://bugs.contribs.org/show_bug.cgi?id=7814
Title: Re: midnight commander under putty
Post by: chris burnat on September 11, 2013, 05:59:35 AM
smeghead

Did you do this, what is the bug number ?
Refer my last post re Daves fix, which works.
This fix or some other fix needs to be implemented by devs, & the only way they will know about it is if a bug report is posted.

This issue is currently being investigated, check:

Subject:    [devinfo] command line UTF8 move e-smith-base-5.2.0-81.el5.sme.i386
Date:    Tue, 10 Sep 2013 22:18:25 -0400
From:    Jean-Philippe PIALASSE <tests@pialasse.com>
To:    devinfo@lists.contribs.org

Additional background information:

#Original change
http://bugs.contribs.org/show_bug.cgi?id=7699

#Related bugs
http://bugs.contribs.org/show_bug.cgi?id=7801
http://bugs.contribs.org/show_bug.cgi?id=7808
http://bugs.contribs.org/show_bug.cgi?id=7814
http://bugs.contribs.org/show_bug.cgi?id=7839
http://bugs.contribs.org/show_bug.cgi?id=7840

#Relevant Forum posts:
http://forums.contribs.org/index.php/topic,50098.msg251454.html#msg251454
http://forums.contribs.org/index.php?topic=50183.new;topicseen#new
Title: Re: midnight commander under putty
Post by: wellsi on September 15, 2013, 04:49:58 PM
Based on the feedback the UTF8 change has been reverted, these are working their way through the releasing process now.

e-smith-lib-2.2.0-10.el5.sme
* Sat Sep 14 2013 Ian Wells <esmith@wellsi.com> 2.2.0-10.sme
- Reverse last change [SME: 7699]

e-smith-base-5.2.0-85.el5.sme
* Sat Sep 14 2013 Ian Wells <esmith@wellsi.com> 5.2.0-85.sme
- Reverse change: Use UTF-8 in the console [SME: 7699]