#167 lcov/geninfo: Won't create branch coverage on Ubuntu 12.04.3 and higher (Desktop version)

Commands
open
nobody
Tools (21)
5
2013-12-13
2013-11-28
No

With the release of Ubuntu 12.04.3, Ubuntu has set an additional environment
variable which influenced the output language of gcov. I. e, in a German
installation of Ubuntu the variable 'LANGUAGE' is set to 'de:en'. This leads to
an German output of gcov, in particular 'Zweig 0 wurde genommen' instead of
the expected 'branch 0 taken'.

Up until Ubuntu 12.04.2 it suffices to set 'LANG' to 'C' to prevent
none-english output. But with Ubuntu 12.04.3 the environment variable LANGUAGE
is set to '<current language="">:en' which superimposed the setting of 'LANG=C'.

Attached you will find a patch to solve this problem. Apply the patch to the most current version of geninfo(commit: geninfo: fix --no-external not working with --initial (2013-08-02 07:29:20 +0000))

1 Attachments

Discussion

  • Fix added to repository. To be included in LCOV 1.11.