Fix Bug 679

--HG--
branch : 3.2
extra : source : ab2547dbf681f4248792491315f08808b2739b22
bug 679: add respective unit test
(transplanted from ab730abc5eae6d22708bfb78dc2482f81bcfaf5e)

--HG--
branch : 3.2
extra : transplant_source : %ABs%0A%BC%5E%AEm%22p%8B%FBx%DC%24%82%F8%1B%CF%AF%5E