packages: fbterm/fbterm-font-lang.patch, fbterm/fbterm.spec - font-lang opt...
witekfl
witekfl at pld-linux.org
Sun Jan 17 08:33:21 CET 2010
Author: witekfl Date: Sun Jan 17 07:33:21 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- font-lang option removed
- also removed setting FC_LANG to en
- works
- rel 4
---- Files affected:
packages/fbterm:
fbterm-font-lang.patch (1.1 -> 1.2) , fbterm.spec (1.15 -> 1.16)
---- Diffs:
================================================================
Index: packages/fbterm/fbterm-font-lang.patch
diff -u packages/fbterm/fbterm-font-lang.patch:1.1 packages/fbterm/fbterm-font-lang.patch:1.2
--- packages/fbterm/fbterm-font-lang.patch:1.1 Sat Jan 16 18:46:43 2010
+++ packages/fbterm/fbterm-font-lang.patch Sun Jan 17 08:33:16 2010
@@ -1,57 +1,11 @@
---- fbterm-1.6/src/fbconfig.cpp.old 2010-01-16 18:38:19.000000000 +0100
-+++ fbterm-1.6/src/fbconfig.cpp 2010-01-16 18:40:26.000000000 +0100
-@@ -172,6 +172,8 @@ void Config::checkConfigFile(const s8 *n
- "# and using a fixed width font as the first is strongly recommended\n"
- "font-names=mono\n"
- "font-size=12\n"
-+ "# default language for fontconfig\n"
-+ "font-lang=en\n"
- "\n"
- "# force font width, usually for non-fixed width fonts\n"
- "# legal value format: n (fw_new = n), +n (fw_new = fw_old + n), -n (fw_new = fw_old - n)\n"
-@@ -223,6 +225,7 @@ bool Config::parseArgs(s32 argc, s8 **ar
- { "verbose", no_argument, 0, 'v' },
- { "font-names", required_argument, 0, 'n' },
- { "font-size", required_argument, 0, 's' },
-+ { "font-lang", required_argument, 0, 'l' },
- { "color-foreground", required_argument, 0, 'f' },
- { "color-background", required_argument, 0, 'b' },
- { "text-encodings", required_argument, 0, 'e' },
-@@ -238,7 +241,7 @@ bool Config::parseArgs(s32 argc, s8 **ar
- };
-
- s32 index;
-- while ((index = getopt_long(argc, argv, "Vvhn:s:f:b:e:r:i:", options, 0)) != -1) {
-+ while ((index = getopt_long(argc, argv, "Vvhn:s:l:f:b:e:r:i:", options, 0)) != -1) {
- switch (index) {
- case 'V':
- printf("FbTerm version " VERSION "\n");
-@@ -256,6 +259,7 @@ bool Config::parseArgs(s32 argc, s8 **ar
- " -n, --font-names=TEXT specify font family names\n"
- " -s, --font-size=NUM specify font pixel size\n"
- " --font-width=NUM force font width\n"
-+ " -l, --font-lang=TEXT default language used by fontconfig\n"
- " -f, --color-foreground=NUM specify foreground color\n"
- " -b, --color-background=NUM specify background color\n"
- " -e, --text-encodings=TEXT specify additional text encodings\n"
---- fbterm-1.6/src/font.cpp.old 2010-01-16 18:38:30.000000000 +0100
-+++ fbterm-1.6/src/font.cpp 2010-01-16 18:38:48.000000000 +0100
-@@ -48,7 +48,9 @@ Font *Font::createInstance()
- FcInit();
-
- s8 buf[64];
-+ s8 lang[8];
- Config::instance()->getOption("font-names", buf, sizeof(buf));
-+ Config::instance()->getOption("font-lang", lang, sizeof(lang));
-
- FcPattern *pat = FcNameParse((FcChar8 *)(*buf ? buf : "mono"));
-
-@@ -56,7 +58,7 @@ Font *Font::createInstance()
+--- fbterm-1.6/src/font.cpp.old 2010-01-17 08:27:51.000000000 +0100
++++ fbterm-1.6/src/font.cpp 2010-01-17 08:28:03.000000000 +0100
+@@ -56,8 +56,6 @@ Font *Font::createInstance()
Config::instance()->getOption("font-size", pixel_size);
FcPatternAddDouble(pat, FC_PIXEL_SIZE, (double)pixel_size);
- FcPatternAddString(pat, FC_LANG, (FcChar8 *)"en");
-+ FcPatternAddString(pat, FC_LANG, (FcChar8 *)(*lang ? lang : "en"));
-
+-
FcConfigSubstitute(NULL, pat, FcMatchPattern);
FcDefaultSubstitute(pat);
+
================================================================
Index: packages/fbterm/fbterm.spec
diff -u packages/fbterm/fbterm.spec:1.15 packages/fbterm/fbterm.spec:1.16
--- packages/fbterm/fbterm.spec:1.15 Sat Jan 16 18:46:43 2010
+++ packages/fbterm/fbterm.spec Sun Jan 17 08:33:16 2010
@@ -3,7 +3,7 @@
Summary(pl.UTF-8): Emulator terminala dla framebuffera
Name: fbterm
Version: 1.6
-Release: 3
+Release: 4
License: GPL v2
Group: Applications/Graphics
Source0: http://fbterm.googlecode.com/files/%{name}-%{version}.tar.gz
@@ -80,6 +80,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.16 2010/01/17 07:33:16 witekfl
+- font-lang option removed
+- also removed setting FC_LANG to en
+- works
+- rel 4
+
Revision 1.15 2010/01/16 17:46:43 witekfl
- added the font-lang.patch with the font-lang option
- rel 3
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/fbterm/fbterm-font-lang.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/fbterm/fbterm.spec?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list