Date: Thu, 20 Jan 2005 17:48:52 +0200 (EET) From: Alexander Peresunko <alex@freeman.org.ua> To: FreeBSD-gnats-submit@FreeBSD.org Subject: misc/76509: [patch] New locale uk_UA.CP1251 support Message-ID: <200501201548.j0KFmqNL097960@freeman.ukrtelecom.net> Resent-Message-ID: <200501201550.j0KFoHR1032167@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76509 >Category: misc >Synopsis: [patch] New locale uk_UA.CP1251 support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 20 15:50:16 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Alexander Peresunko >Release: FreeBSD 5.3-STABLE i386 >Organization: Ukrtelecom >Environment: System: FreeBSD freeman.ukrtelecom.net 5.3-STABLE FreeBSD 5.3-STABLE #1: Wed Dec 22 18:15:26 EET 2004 root@freeman.ukrtelecom.net:/usr/obj/usr/src/sys/FREEMAN i386 >Description: Patch for uk_UA.CP1251 locale support (for ukrainian users who wants to work in the ukrainian locale with CP1251 charset) >How-To-Repeat: 1. Save attached patch somewhere 2. cd /usr/src && patch -p1 < /path/to/patch >Fix: Patch is attached --- locale-uk_UA.CP1251.patch begins here --- diff -urN src/share/colldef/Makefile src.new/share/colldef/Makefile --- src/share/colldef/Makefile Sat Oct 16 22:51:34 2004 +++ src.new/share/colldef/Makefile Sun Oct 17 04:42:58 2004 @@ -34,6 +34,7 @@ sr_YU.ISO8859-5 \ sv_SE.ISO8859-1 \ sv_SE.ISO8859-15 \ + uk_UA.CP1251 \ uk_UA.ISO8859-5 \ uk_UA.KOI8-U diff -urN src/share/colldef/uk_UA.CP1251.src src.new/share/colldef/uk_UA.CP1251.src --- src/share/colldef/uk_UA.CP1251.src Thu Jan 1 03:00:00 1970 +++ src.new/share/colldef/uk_UA.CP1251.src Sun Oct 17 04:48:16 2004 @@ -0,0 +1,42 @@ +# CP1251 (for Ukrainian) +# +# $FreeBSD$ +# +charmap map.CP1251 +order \ +# controls + <NU>;...;<US>;\ +# + <NS>;<SP>;!;\";<"6>;<"9>;<<<>;</>/>>;\ + <Nb>;<Eu>;<Cu>;<DO>;\ + %;&;';<'6>;<'9>;\(;\);*;+;<+->;\,;<-->;-;.;/;\ +# digits + 0;...;9;\ +# + :;\;;\<;=;>;?;<SE>;<PI>;<Co>;<Rg>;<At>;\ +# capital + A;...;Z;\ + <A=>;<B=>;<V=>;<G=>;<G3>;<D=>;<E=>;<IE>;<Z%>;\ + <Z=>;<I=>;<II>;<YI>;<J=>;<K=>;<L=>;<M=>;<N=>;\ + <O=>;<P=>;<R=>;<S=>;<T=>;<U=>;<F=>;<H=>;<C=>;\ + <C%>;<S%>;<Sc>;<JU>;<JA>;<%">;\ +# + [;\\;];^;_;`;\ +# small + a;...;z;\ + <a=>;<b=>;<v=>;<g=>;<g3>;<d=>;<e=>;<ie>;<z%>;\ + <z=>;<i=>;<ii>;<yi>;<j=>;<k=>;<l=>;<m=>;<n=>;\ + <o=>;<p=>;<r=>;<s=>;<t=>;<u=>;<f=>;<h=>;<c=>;\ + <c%>;<s%>;<sc>;<ju>;<ja>;<%'>;\ +# + \{;<NO>;|;<BB>;\};~;<.M>;<DG>;<My>;\ + <-N>;<-M>;<.9>;<:9>;</->;</=>;<.3>;<%0>;<<1>;</>1>;\ + <N0>;<TM>;<sb>;<FB>;<DT>;\ +# + <D%>;<G%>;<g%>;\ + <LJ>;<NJ>;<KJ>;<Ts>;<DZ>;\ + <d%>;\ + <lj>;<nj>;<kj>;<ts>;<dz>;\ + <V%>;<v%>;<J%>;\ + <j%>;<DS>;<ds>;\ + <IO>;<io>;<Y=>;<y=>;<=">;<='>;<JE>;<je> diff -urN src/share/mklocale/Makefile src.new/share/mklocale/Makefile --- src/share/mklocale/Makefile Sat Aug 28 15:52:30 2004 +++ src.new/share/mklocale/Makefile Sun Oct 17 04:38:27 2004 @@ -44,7 +44,7 @@ LATIN2LINKS= cs_CZ hr_HR hu_HU pl_PL sl_SI sr_YU ro_RO sk_SK LATIN4LINKS= lt_LT LATIN5LINKS= sr_YU uk_UA be_BY -CP1251LINKS= ru_RU be_BY +CP1251LINKS= ru_RU be_BY uk_UA UTF8LINKS= af_ZA be_BY bg_BG ca_ES cs_CZ da_DK de_AT de_CH de_DE el_GR \ en_AU en_CA en_GB en_IE en_NZ en_US es_ES et_EE eu_ES fi_FI \ fr_BE \ diff -urN src/share/monetdef/Makefile src.new/share/monetdef/Makefile --- src/share/monetdef/Makefile Wed Oct 13 18:47:02 2004 +++ src.new/share/monetdef/Makefile Sun Oct 17 04:38:26 2004 @@ -64,6 +64,7 @@ sr_YU.UTF-8 \ sv_SE.ISO8859-1 \ tr_TR.ISO8859-9 \ + uk_UA.CP1251 \ uk_UA.ISO8859-5 \ uk_UA.KOI8-U \ uk_UA.UTF-8 \ diff -urN src/share/monetdef/uk_UA.CP1251.src src.new/share/monetdef/uk_UA.CP1251.src --- src/share/monetdef/uk_UA.CP1251.src Thu Jan 1 03:00:00 1970 +++ src.new/share/monetdef/uk_UA.CP1251.src Sun Oct 17 04:48:48 2004 @@ -0,0 +1,36 @@ +# $FreeBSD$ +# +# WARNING: spaces may be essential at the end of lines +# WARNING: empty lines are essential too +# +# int_curr_symbol (last character always SPACE) +UAH +# currency_symbol +грн. +# mon_decimal_point +, +# mon_thousands_sep + +# mon_grouping, separated by ; +3;3 +# positive_sign + +# negative_sign +- +# int_frac_digits +2 +# frac_digits +2 +# p_cs_precedes +0 +# p_sep_by_space +1 +# n_cs_precedes +0 +# n_sep_by_space +1 +# p_sign_posn +1 +# n_sign_posn +1 +# EOF diff -urN src/share/msgdef/Makefile src.new/share/msgdef/Makefile --- src/share/msgdef/Makefile Fri Sep 3 17:28:53 2004 +++ src.new/share/msgdef/Makefile Sun Oct 17 04:38:26 2004 @@ -54,6 +54,7 @@ sr_YU.UTF-8 \ sv_SE.ISO8859-1 \ tr_TR.ISO8859-9 \ + uk_UA.CP1251 \ uk_UA.ISO8859-5 \ uk_UA.KOI8-U \ uk_UA.UTF-8 \ diff -urN src/share/msgdef/uk_UA.CP1251.src src.new/share/msgdef/uk_UA.CP1251.src --- src/share/msgdef/uk_UA.CP1251.src Thu Jan 1 03:00:00 1970 +++ src.new/share/msgdef/uk_UA.CP1251.src Sun Oct 17 04:49:05 2004 @@ -0,0 +1,14 @@ +# $FreeBSD$ +# +# WARNING: spaces may be essential at the end of lines +# WARNING: empty lines are essential too +# +# yesexpr +^[тТyY].* +# noexpr +^[нНnN].* +# yesstr +так +# nostr +ні +# EOF diff -urN src/share/numericdef/Makefile src.new/share/numericdef/Makefile --- src/share/numericdef/Makefile Sat Aug 28 16:24:24 2004 +++ src.new/share/numericdef/Makefile Sun Oct 17 04:38:27 2004 @@ -70,7 +70,7 @@ IT_LINKS= it_CH BE_LINKS= nl_BE RU_LINKS= ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 -UA_LINKS= uk_UA.ISO8859-5 +UA_LINKS= uk_UA.CP1251 uk_UA.ISO8859-5 BY_LINKS= be_BY.CP1131 be_BY.ISO8859-5 CN_LINKS= zh_CN.GB18030 zh_CN.GB2312 zh_CN.GBK zh_HK.Big5HKSCS zh_TW.Big5 diff -urN src/share/timedef/Makefile src.new/share/timedef/Makefile --- src/share/timedef/Makefile Sat Oct 16 23:52:32 2004 +++ src.new/share/timedef/Makefile Sun Oct 17 04:38:25 2004 @@ -80,6 +80,7 @@ sv_SE.UTF-8 \ tr_TR.ISO8859-9 \ tr_TR.UTF-8 \ + uk_UA.CP1251 \ uk_UA.ISO8859-5 \ uk_UA.KOI8-U \ uk_UA.UTF-8 \ diff -urN src/share/timedef/uk_UA.CP1251.src src.new/share/timedef/uk_UA.CP1251.src --- src/share/timedef/uk_UA.CP1251.src Thu Jan 1 03:00:00 1970 +++ src.new/share/timedef/uk_UA.CP1251.src Sun Oct 17 04:49:38 2004 @@ -0,0 +1,102 @@ +# $FreeBSD$ +# +# WARNING: spaces may be essential at the end of lines +# WARNING: empty lines are essential too +# +# Short months names +# +січ +лют +бер +кві +тра +чер +лип +сер +вер +жов +лис +гру +# +# Long months names +# +січня +лютого +березня +квітня +травня +червня +липня +серпня +вересня +жовтня +листопада +грудня +# +# Short weekdays names +# +нд +пн +вт +ср +чт +пт +сб +# +# Long weekdays names +# +неділя +понеділок +вівторок +середа +четвер +п'ятниця +субота +# +# X_fmt +# +%H:%M:%S +# +# x_fmt +# +%d.%m.%Y +# +# c_fmt +# +%a %e %b %X %Y +# +# am +# + +# +# pm +# + +# +# date_fmt +# +%a %e %b %Y %X %Z +# +# Long month names in alternative form +# +січень +лютий +березень +квітень +травень +червень +липень +серпень +вересень +жовтень +листопад +грудень +# +# md_order +# +dm +# +# ampm_fmt +# + +# EOF diff -ur src/etc/mtree/BSD.usr.dist src.new/etc/mtree/BSD.usr.dist --- src/etc/mtree/BSD.usr.dist Sat Sep 25 03:42:37 2004 +++ src.new/etc/mtree/BSD.usr.dist Sun Oct 17 04:41:07 2004 @@ -615,6 +615,8 @@ .. tr_TR.UTF-8 .. + uk_UA.CP1251 + .. uk_UA.ISO8859-5 .. uk_UA.KOI8-U --- locale-uk_UA.CP1251.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501201548.j0KFmqNL097960>