Menu

#45 Version 3.2.9 garbles subject from ANSI or UTF-8 text file

v1.0 (example)
open
nobody
None
5
2015-10-20
2015-10-19
R Massey
No

I'm using version 3.2.9 64-bit. When I use a UTF-8 or ANSI file for the subject (-sf parameter), I get garbled text. If the file is UTF-16 (with a little-endian BOM), the text looks correct.

Version 3.2.6 didn't have this issue. Could this be related to the recent file detection changes?

Discussion

  • Chip

    Chip - 2015-10-20

    Yes, this issue was finally exposed with the most recent release. I had not tested the -sf option, shame on me. There was a line of code that used the size of an array which held the contents of the subject file, rather than using the string length of the content that was read. This caused problems downstream in the code when it came time to detect Unicode (not UTF-8) characters.

    The particular line has been replaced with correct code, and I will be getting an update released in the next day or two.

     
  • R Massey

    R Massey - 2015-10-20

    That sounds great -- thanks!

     
  • Chip

    Chip - 2015-10-20

    3.2.10 has been uploaded. The garbled subject line has been fixed, and is not sent as quoted mime unless necessary. This latter is something that occurred with 3.2.9.

     
  • R Massey

    R Massey - 2015-10-20

    I've confirmed that 3.2.10 correctly handles files in UTF-8 or either flavor of UTF-16. Many thanks for the very quick version update!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.