Re: setlocale command is missing

2009-12-26 Thread Polytropon
On Sat, 26 Dec 2009 02:04:44 +0100, Daniel Dvořák dan...@hellteam.net wrote:
 BTW in mc there is not any settings with display bits, there
 is only options menu with display bits. Wrong help dialogs ?

The ini file for MC contains:

.mc/ini:use_8th_bit_as_meta=0
.mc/ini:display_codepage=Other_8_bit

But I didn't find a menu / setting corresponding to the first
setting which I had to change from 1 to 0 manually in order to
use Umlauts in the MC editor.

Therefore, I have set the LC_* variables to en_US.ISO8859-1
or de_DE.ISO8859-1 respectively. Did you include the language
part of the LC setting, as well as the correct charset name?



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


setlocale command is missing

2009-12-25 Thread Daniel Dvořák
Hi,
 
I updated a mc port to the last one, version 4.7.0pre4 and wanted to run mc, 
but mc display a warning message that the selected display charset or source 
codeset does not match one set via locale. I have never seen this message since 
I am a user of mc. Propably it is something new in this new version. The 
version 4.6.2 does not show you this message durring starting application.
 
I wanted to set my locale, but I found out that command setlocale is missing on 
FreeBSD 7.2.
 
Files in directory /etc:
 
login.conf, login.conf.db, csh.login and profile are set as HANDBOOK recommends 
for language localization.
 
My shells are bash, tcsh or zsh, csh for root user. The results are the same.
 
bash:
[u...@server ~]$ LC_ALL=ISO-8859-2; export LC_ALL
-bash: varování: setlocale: LC_ALL: cannot change locale (ISO-8859-2): No such 
file or directory
 
zsh:
server% setlocale LC_ALL ISO-8859-2
zsh: command not found: setlocale

tcsh:
 setlocale LC_ALL ISO-8859-2
setlocale: Command not found.

root csh:
server# setlocale LC_ALL ISO-8859-2
setlocale: Command not found.

So my simple question is why is setlocale command missing in FreeBSD 7.2 ? And 
if user could not use locale and setlocale commands like on Linux, how can I 
solve my problem with new version of MC ?
 
The mc message:
 
Confirmation
 
Chosen display charset (Settings-Display bits) or source codeset (in mcedit 
ctrl-t) does not match one set via locale. Set correct codeset manually or 
press Fix it to set locale default.
 
Or set 'don' task again' and press Skip
 
[ ] don't ask again
 
[ Fix it ]   [ Skip ]
 
BTW in mc there is not any settings with display bits, there is only options 
menu with display bits. Wrong help dialogs ?
 
Thank you
 
Daniel
 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setlocale command is missing

2009-12-25 Thread Rolf G Nielsen

Daniel Dvořák wrote:

Hi,
 
I updated a mc port to the last one, version 4.7.0pre4 and wanted to run mc, but mc display a warning message that the selected display charset or source codeset does not match one set via locale. I have never seen this message since I am a user of mc. Propably it is something new in this new version. The version 4.6.2 does not show you this message durring starting application.
 
I wanted to set my locale, but I found out that command setlocale is missing on FreeBSD 7.2.
 
Files in directory /etc:
 
login.conf, login.conf.db, csh.login and profile are set as HANDBOOK recommends for language localization.
 
My shells are bash, tcsh or zsh, csh for root user. The results are the same.
 
bash:

[u...@server ~]$ LC_ALL=ISO-8859-2; export LC_ALL
-bash: varování: setlocale: LC_ALL: cannot change locale (ISO-8859-2): No such 
file or directory
 
zsh:

server% setlocale LC_ALL ISO-8859-2
zsh: command not found: setlocale

tcsh:

setlocale LC_ALL ISO-8859-2

setlocale: Command not found.

root csh:
server# setlocale LC_ALL ISO-8859-2
setlocale: Command not found.

So my simple question is why is setlocale command missing in FreeBSD 7.2 ? And 
if user could not use locale and setlocale commands like on Linux, how can I 
solve my problem with new version of MC ?
 
The mc message:
 
Confirmation
 
Chosen display charset (Settings-Display bits) or source codeset (in mcedit ctrl-t) does not match one set via locale. Set correct codeset manually or press Fix it to set locale default.
 
Or set 'don' task again' and press Skip
 
[ ] don't ask again
 
[ Fix it ]   [ Skip ]
 
BTW in mc there is not any settings with display bits, there is only options menu with display bits. Wrong help dialogs ?
 
Thank you
 
Daniel
 
 
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org





ls -ld /usr/share/locale/*8859-2 for a list of ISO8859-2 locales. Use 
the complete name, e.g. cs_CZ.ISO8859-2.


To set the above locale in sh and work-alikes use
LC_ALL=cs_CZ.ISO8859-2; export LC_ALL
(the syntax you tried, but your locale spec was wrong, and that's why it 
protested).


To set the above locale in csh and work-alikes use
setenv LC_ALL cs_CZ.ISO8859-2

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org