~cmiller/ubuntu/trusty/icewm/translations-cause-crash-lp447883

« back to all changes in this revision

Viewing changes to src/testlocale.cc

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2008-03-10 21:24:25 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080310212425-562btgm3vbwzvhu0
Tags: 1.2.35-1
* New upstream release with one fix from CVS
* Automatic linking with gcc -lsupc++ fixed (failed in recent versions),
  also using "-Wl,--as-needed"
* Documentation update - README.Debian reordered by importance
* Changed font defaults in Xft specifications to consider Bitstream Vera
  family as alternative font (closes: #360060, #319191, #349952, #456463),
  also documented how to configure alternative fonts
* Added Bernhard's iconify_on_wm_hints as dpatch (closes: #428566, #389919)
* force use of bash in upstream's Makefile to keep the installation
  magic as-is (closes: #459181)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
char const *ApplicationName("testlocale");
9
9
bool multiByte(true);
10
10
 
 
11
#ifdef CONFIG_I18N
11
12
static char *
12
13
foreign_str(char const *charset, char const *foreign)
13
14
{
35
36
    printf("Rating for '" LocaleFragment "': %d\n", \
36
37
           YLocale::getRating(LocaleFragment));
37
38
 
 
39
#endif
 
40
 
38
41
int main() {
 
42
#ifdef CONFIG_I18N
39
43
    size_t ulen;
40
44
 
41
45
    const YLChar *lstr("M�hrenk�uter");
82
86
        TEST_RATING("ru_RU.cp1251");
83
87
        TEST_RATING("ru_RU.koi8r");
84
88
    }
85
 
    
 
89
#else
 
90
    puts("I18N disabled.");
 
91
#endif
86
92
    return 0;
87
93
}