Issue 76143 - FreeBSD porting : I18N: Operating system doesn't support locale "en_US" at startup
Summary: FreeBSD porting : I18N: Operating system doesn't support locale "en_US" at st...
Status: CONFIRMED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.2
Hardware: All FreeBSD
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-06 03:02 UTC by maho.nakata
Modified: 2017-05-20 11:31 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description maho.nakata 2007-04-06 03:02:34 UTC
From FreeBSD OOo ML:
http://docs.freebsd.org/cgi/mid.cgi?20070404095544.GE854
Peter Jeremy <peterjeremy@optushome.com.au> reported that:

When OOo starts up, it reports
I18N: Operating system doesn't support locale "en_US"

After rummaging around in the OOo 2.2 code, this comes from the code in
OOF680_m14/vcl/unx/source/app/i18n_im.cxx SalI18N_InputMethod::SetLocale
which includes a hard-wired trial of the "en_US" locale.

The correct locale name for FreeBSD should be "en_US.ISO8859-1".
Is it worth adding at least a local patch to stop this warning?

Could you please comment on this issue?
Comment 1 maho.nakata 2007-04-06 03:06:59 UTC
Reassigned to obo, since vcl/unx/source/app/i18n_im.cxx
> *  last change: $Author: obo $ $Date: 2006/09/17 12:32:10 $
could you please comment on this issue or reassign to the appropreate
person?

if it is appropreate to add something 
           #ifdef MACOSX // MacOS X always uses UTF-8 for the filesystem
            osl_setThreadTextEncoding (RTL_TEXTENCODING_UTF8);
            locale = SetSystemLocale( "en_US.UTF-8" );
            #else
            osl_setThreadTextEncoding (RTL_TEXTENCODING_ISO_8859_1);
            locale = SetSystemLocale( "en_US" );
            #endif
here, please reassign to me.
Comment 2 oliver.bolte 2007-04-16 10:00:22 UTC
Hi,

this code has been introduced with rev. 1.35 (CWS pj51),
reassigned to obr.

Oliver
Comment 3 nospam4obr 2007-04-16 10:47:26 UTC
IIRC, I just introduced the MacOS X specific part, the default to "en_US" was
already there.

@pl: would it be acceptable for Linux & Solaris to use "en_US.ISO8859-1" as
well, or should we introduce a new code path for FreeBSD ?
Comment 4 philipp.lohmann 2007-04-16 11:24:11 UTC
A quick look in /usr/lib/locale on my system showed no en_US.ISO8859-1 but only
en_US. So I tend to think that we do not want that on all systems; especially
since most modern systems actually use UTF8 per default, not iso8859-1.
Comment 5 nospam4obr 2007-04-16 11:39:13 UTC
@maho: seems like adding a FREEBSD codepath is the only acceptable quick fix.
Long term, the fallback locale maybe should become a configure option.
Comment 6 Marcus 2017-05-20 11:31:40 UTC
Reset assigne to the default "issues@openoffice.apache.org".