Re: Locale data

2004-07-15 Thread Svein Halvor Halvorsen

[João Carlos Mendes Luís, 2004-07-12]
Shouldn't the locale select the best charset if it is not defined?
  
I have problems with this in third party applications.  They just set
   locale as pt_BR and dont give me a choice of adding a charset extension.  What
   should I do?  Is this a FreeBSD bug?

[Svein Halvor Halvorsen]
   Try making a symlink from pt_BR.ISO8859-1 to pt_BR in /usr/share/locale

[João Carlos Mendes Luís, 2004-07-13]
   This would probably solve my problem, but I'd like to know what is the
  expected behaviour.  If FreeBSD is right, I'll try to fix the application.


I'm not sure I understand what you mean with expected behaviour.

In FreeBSD you need to include the character set in your locale string.
This is not a bug, but I believe by design. Whether this is conform to
somebodys expectations or not, I'm not sure. I don't think it is a
violation of any standards, however. But I might be mistaken.

To make some program work, that has a locale string hard coded, you might
need to make the symlink as described in my previous mail.


/sve
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Locale data

2004-07-13 Thread Svein Halvor Halvorsen

[João Carlos Mendes Luís, 2004-07-12]
   Shouldn't the locale select the best charset if it is not defined?

   I have problems with this in third party applications.  They just set
  locale as pt_BR and dont give me a choice of adding a charset extension.  What
  should I do?  Is this a FreeBSD bug?


Try making a symlink from pt_BR.ISO8859-1 to pt_BR in /usr/share/locale


Svein Halvor
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Locale data

2004-07-13 Thread João Carlos Mendes Luís
This would probably solve my problem, but I'd like to know what is the 
expected behaviour.  If FreeBSD is right, I'll try to fix the application.

Svein Halvor Halvorsen wrote:
[João Carlos Mendes Luís, 2004-07-12]
 Shouldn't the locale select the best charset if it is not defined?
 I have problems with this in third party applications.  They just set
locale as pt_BR and dont give me a choice of adding a charset extension.  What
should I do?  Is this a FreeBSD bug?

Try making a symlink from pt_BR.ISO8859-1 to pt_BR in /usr/share/locale
Svein Halvor
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Locale data

2004-07-12 Thread João Carlos Mendes Luís
Hi,
I'm not sure what should be the right behavior.  If I do not select a 
locale charset, strftime does not work right.

FreeBSD 4.10:
minerva::root locale [2445] LC_ALL=en_US date +%x
07/12/04
minerva::root locale [2446] LC_ALL=pt_BR date +%x
07/12/04
minerva::root locale [2447] LC_ALL=pt_BR.ISO8859-1 date +%x
12/07/2004
minerva::root locale [2448]
Linux:
cerbero::root jonny [1010] LC_ALL=en_US date +%x
07/12/2004
cerbero::root jonny [1011] LC_ALL=pt_BR date +%x
12-07-2004
cerbero::root jonny [1012] LC_ALL=pt_BR.ISO8859-1 date +%x
12-07-2004
cerbero::root jonny [1013]
(Note that / is the right separator, Linux is buggy in this aspect)
Shouldn't the locale select the best charset if it is not defined?
I have problems with this in third party applications.  They just set 
locale as pt_BR and dont give me a choice of adding a charset extension.  What 
should I do?  Is this a FreeBSD bug?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]