Re: Locale in 1.1?

1996-05-12 Thread Michael Meskes
Yves Arrouye writes:
 The fact that nvi (does not) displays diacritic characters has nothing
 to do with the fonts, just to what isprint() returns. I had it work
 under Linux using a Slackware 3.0 distribution.

Plain Slackware? I thought my Slackware would do that too until I discoverd
that tcsh in Slackware is ocmpiled to simulate NLS.

 typing diacritic characters tells they are not printable with LANG set
 to ISO-8859-1 :-( Is it a bug in the libc5 used with 1.1? A bug with
 me? In any case, it's annoying...

It's not a bug. You simply don't have the locale installed. It works fine
for me since I installed the Gemrman NLS.

Michael

-- 
Michael Meskes   |_  __  
 |   / ___// / // / / __ \___  __
[EMAIL PROTECTED] |   \__ \/ /_  / // /_/ /_/ / _ \/ ___/ ___/
 |  ___/ / __/ /__  __/\__, /  __/ /  (__  )
Use Debian Linux!| //_/  /_/  //\___/_/  //


Re: Locale in 1.1?

1996-05-10 Thread Yves Arrouye
J. H. M. Dassen writes:
  [Please fix your return address: [EMAIL PROTECTED] is incomplete]
 I know. Sorry, my dns domain name was not set. Should be okay now.

   I'd like to have some info about locale handling in Debian. The
   /usr/lib/locale directory has just an emty dir en_GB in it.
   
   I tried to set LANG to fr_FR or ISO-8859-1 (which Linux should
   support) but nvi still does not display diacritic characters (I had it
   display them on a Slackware with ISO-8859-1). How can I correct that?
  
  AFAIK the locale support doesn't set your display font.
  Perhaps you need to do a setfont with one of the iso* fonts in 
  /usr/lib/kbd/consolefonts ?

The fact that nvi (does not) displays diacritic characters has nothing
to do with the fonts, just to what isprint() returns. I had it work
under Linux using a Slackware 3.0 distribution.

Doing a little test:

#include stdio.h
#include ctype.h
#include locale.h

main() {
int c;

setlocale(LC_ALL, );

while ((c = getchar()) != EOF) {
if (c == '\n') continue;
printf(0x%02d: %d\n, c, isprint(c));
}
}

typing diacritic characters tells they are not printable with LANG set
to ISO-8859-1 :-( Is it a bug in the libc5 used with 1.1? A bug with
me? In any case, it's annoying...

Yves.


Re: Locale in 1.1?

1996-05-10 Thread Christian Hudon
On Thu, 9 May 1996, Yves Arrouye wrote:

 The fact that nvi (does not) displays diacritic characters has nothing
 to do with the fonts, just to what isprint() returns. I had it work
 under Linux using a Slackware 3.0 distribution.
[snip]
 typing diacritic characters tells they are not printable with LANG set
 to ISO-8859-1 :-( Is it a bug in the libc5 used with 1.1? A bug with
 me? In any case, it's annoying...

Errm... What you care about is LC_CTYPE (character set), not LANG
(language), methinks. Anyhow...  I've compiled my own fr_CA locale file. If
you're interested just e-mail me and I'll send you a copy. After that doing
setenv LC_CTYPE fr_CA will make nvi happy... assuming it calls
setlocale() somewhere. (I did a small test similar to yours and it worked
iff I did a call to setlocale().)

I'll probably do a set of Debian packages for locale support at some
point in the future... After I've done all the other stuff I have to do.

   Christian




Re: Locale in 1.1?

1996-05-07 Thread J.H.M.Dassen
[Please fix your return address: [EMAIL PROTECTED] is incomplete]

 I'd like to have some info about locale handling in Debian. The
 /usr/lib/locale directory has just an emty dir en_GB in it.
 
 I tried to set LANG to fr_FR or ISO-8859-1 (which Linux should
 support) but nvi still does not display diacritic characters (I had it
 display them on a Slackware with ISO-8859-1). How can I correct that?

AFAIK the locale support doesn't set your display font.
Perhaps you need to do a setfont with one of the iso* fonts in 
/usr/lib/kbd/consolefonts ?

Ray