Commit Graph

5 Commits

Author SHA1 Message Date
Jan Engelhardt
b447adbe37
Fixes/comments for guessBestEncoding (#304)
* tests: add case for getRecommendedEncoding

* vmime: avoid integer multiply wraparound in wordEncoder::guessBestEncoding

If the input string is 42949673 characters long or larger, there will
be integer overflow on 32-bit platforms when multiplying by 100.
Switch that one computation to floating point.

* vmime: update comment in wordEncoder::guessBestEncoding
2024-05-21 15:47:05 +02:00
Vincent Richard
b55bdc9c0b Code style and clarity. 2018-09-05 23:54:48 +02:00
Vincent Richard
03a0e36e91 Added support for language specification in RFC-2047 encoded words and RFC-2231 parameter values. 2014-06-30 22:48:42 +02:00
Vincent Richard
1df8c6cd0e Refactored unit tests. 2013-03-08 08:19:55 +01:00
Vincent Richard
e65b3e0f55 Unit tests for wordEncoder. 2013-02-25 10:42:54 +01:00