[difftext] make it multiplatform