Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2004 22:51:19 +0100
From:      Erik Norgaard <norgaard@locolomo.org>
To:        =?ISO-8859-1?Q?M=E1rio_Gamito?= <gamito@netual.pt>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: No latin characters :(
Message-ID:  <41C89AD7.6040206@locolomo.org>
In-Reply-To: <41C895B2.8030108@netual.pt>
References:  <41C8807F.2080004@netual.pt> <41C8895D.4060606@locolomo.org> <41C88D15.4090603@netual.pt> <41C893F6.6090503@locolomo.org> <41C895B2.8030108@netual.pt>

next in thread | previous in thread | raw e-mail | index | archive | help
Mário Gamito wrote:
> Thank you for your patience.
> 
> I did what you told me, but i get:
> 
> "login_getclass: unknown class 'pt_PT'"

Did you create a login class 'pt_PT' in login.conf?

   pt_PT:Portugeese users:\
         :charset=iso-8859-1:\
         :lang=pt_PT.ISO8859-1:\
         :tc=default:

and did you run

   # cap_mkdb login.conf

after that?

The main reason I like to create a specific class is to keep default as 
is, but if you're the only one on your system, you could set 'lang' and 
'charset' in the default section and leave the class-field in the 
password file empty.

The important thing is to set the charset variable.

True, it is not completly obvious how to get it right, and there is more 
than one way to do it  which can be confusing. The individual user can 
override the varables set in login.conf(5) by editing .login_conf.

If you feel you need to play and test, it might be wise to try and set 
some environment viriables: MM_CHARSET and LANG are set by the above 
mentioned.

Cheers, Erik

PS: While you are at it, you might want to change password format to 
blowfish (blf) instead of md5, this is also done in login.conf. But 
that's another story :-)
-- 
Ph: +34.666334818                                  web: www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41C89AD7.6040206>