f76022a8ee809aa35882a2808b67a45756dd0d1f max Wed Jan 31 08:25:28 2024 -0800 trying to get rid of a warning message that appears only on the RR due to some fontconfig issue, refs #32691 diff --git src/hg/hgGeneGraph/hgGeneGraph src/hg/hgGeneGraph/hgGeneGraph index 3680d9c..dbaed72 100755 --- src/hg/hgGeneGraph/hgGeneGraph +++ src/hg/hgGeneGraph/hgGeneGraph @@ -634,30 +634,34 @@ exit(0) def runDot(fname, alg, format="png"): """ run dot and return tuple outFname, outMapFname. Makes a real effort to find a working version of dot, see findDot() """ outFname = splitext(fname)[0]+"."+format outMap = splitext(fname)[0]+".map" binPath = findDot() if which(binPath) is None: print("Could not find the command dot or cgi-bin/loader/dot_static<p>") printDotErrorHelpAndExit() + # work around a dot message that clutters our apache logs on some redhats + # https://stackoverflow.com/questions/29809462/uncss-error-c-utf-8-not-a-valid-language-tag + os.environ["LC_ALL"] = "en_US.utf8" + cmd = [binPath, "-Gdpi=96", "-Gsize=12,5", "-Gratio=fill", "-K"+alg, "-T"+format, fname, "-o",outFname, "-q 2"] # create a html map for png format if format=="png": cmd.extend(["-Tcmapx", "-o", outMap]) ret = runCmd(cmd, mustRun=False) if ret!=0: print(("Could not run the command '%s'. <p>" % " ".join(cmd))) printDotErrorHelpAndExit() return outFname, outMap def dictToDot(d): """ reformat a dictionary to a string like [key1="value1"; key2="value2"] """ if len(d)==0: