| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Garbled/unreadable legends http://www.steveshipway.org/forum/viewtopic.php?f=2&t=8110 |
Page 1 of 1 |
| Author: | jcoxen [ Tue Jun 11, 2013 3:15 am ] |
| Post subject: | Garbled/unreadable legends |
| Author: | stevesh [ Mon Jul 08, 2013 11:19 am ] |
| Post subject: | Re: Garbled/unreadable legends |
This is a problem in the way Pango in RRDTool handles the text and embedded control characters. It is likely that the MRTG .cfg file has Windows-style ^M characters in it that you're not seeing, but are messing up Pango. The latest Routers2 (2.23beta) has some additional code to work around this and try to strip any spurious ^M added by Windows but does not always work. If using UNIX, edit the files and make sure to strip the ^M characters. In Windows, try to avoid using Notepad to edit the files (wordpad or vim dont add these characters); you could use vim to edit them and strip these ^M characters out which may fix the issue. |
|
| Author: | jcoxen [ Tue Jul 09, 2013 3:40 am ] |
| Post subject: | Re: Garbled/unreadable legends |
I've checked my config files - no ^M's anywhere;I use vim for editing everything so it's an easy thing to check. Then, out of a general feeling of paranoia I cat'd the file and grep'd for ^M and they showed up at the end of every line. So I cat'd it again, piped it through a sed filter that swapped ^M for XXX and redirected that into a temp file. A check of the temp files showed XXX at the end of every line. A quick swap in vim and replace the original file with the temp and I'm in business. Not sure why it's not showing up in vim in the first place but I've got a fix so... Thanks for the help. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|