Re: how to add es_MX locale ?

2012-04-19 Thread jbiskofski
Matt, Thanks for the help I was able to build the locale I needed with your
instructions. I will be submitting it. Thanks again for your help.

- Jose

On Wed, Apr 18, 2012 at 5:09 PM, Matthew Seaman matt...@freebsd.org wrote:

 On 18/04/2012 21:27, jbiskofski wrote:
  I dont see it in the response from locale -a. How can I add this
 locale?

 You'ld have to generate the appropriate locale data files for es_MX.
 Look at the equivalents for es_ES in
 /usr/share/locale/{es_ES.ISO8859-1,es_ES.ISO8859-15,es_ES.UTF-8} --
 although as ISO8859-15 is actually identical to ISO8859-1 apart from the
 addition of the Euro (€) currency symbol you can probably skip that for
 es_MX.

 These LC_* files have sources in the following sub-directories of
 /usr/src/share:

 LC_CTYPEmklocale
 LC_COLLATE  colldef
 LC_MESSAGES msgdef
 LC_MONETARY monetdef
 LC_NUMERIC  numericdef
 LC_TIME timedef

 If you look at the Makefiles in those directories you can see how the
 different output files are generated.  Note that where the source would
 be the same for many locales, only one source file is used, and the
 Makefile copies the result appropriately for other locales.

 For example, the LC_CTYPE files for languages written in the latin
 alphabet are generated from generic sources in /usr/src/share/mklocale
 -- so for the ISO8859-1 character set, the source code is in
 /usr/src/share/mklocale/la_LN.ISO8859-1.src

 Once you've got the es_MX files sorted out, submit your changes as a
 diff by using send-pr(1), and try and get a committer interested in
 adding them to the tree.  You probably won't need to write many es_MX
 specific files -- it could be just monetdef/es_MX.UTF-8.src [*] to
 specify the currency -- but you will need to add the right bits to the
 Makefiles to get the other es_MX LC_* files properly generated.

Cheers,

Matthew

 [*] I believe UTF-8 is preferred nowadays, rather than ISO8859-1 or
 ISO8859-15.

 --
 Dr Matthew J Seaman MA, D.Phil.
 PGP: http://www.infracaninophile.co.uk/pgpkey



___
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


APC UPS Trip Lite - usb device keeps disconnecting

2012-02-08 Thread jbiskofski
Gentlemen,

I have recently purchased a small APC UPS unit for my office server. We
have power outages from time to time that can last a couple of hours (
Mexico City ).

I would like to setup apcupsd to automatically shutdown the server when
there is a power outage. Upon connecting the UPS with a USB cable to the
server I get this message :

ugen1.2: Tripp Lite at usbus1
uhid1: Tripp Lite Tripp Lite UPS, class 0/0, rev 1.10/0.07, addr 2 on
usbus1

And then about 20 seconds later :

ugen1.2: Tripp Lite at usbus1 (disconnected)
uhid1: at uhub1, port 2, addr 2 (disconnected)

20 seconds after that :

ugen1.2: Tripp Lite at usbus1
uhid1: Tripp Lite Tripp Lite UPS, class 0/0, rev 1.10/0.07, addr 2 on
usbus1

Another 20 seconds :

ugen1.2: Tripp Lite at usbus1 (disconnected)
uhid1: at uhub1, port 2, addr 2 (disconnected)



So on and so forth forever.

I'm using 8.2-STABLE. I cvsupd, builttheworld, installedtheworld and all
that in hopes that would solve the problem. But unfortunately it did not. I
was unable to find a similar situation in Google.

Any help would be very appreciated.

Thank you!

- Jose from Mexico
___
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