I'm not a lawyer (so correct me if I'm wrong) but here in Poland there is a law that allows you to reverse engineer a product that you bought to make it work on your hardware (e.g. you bought a windows only program but want to make it work under Linux)
So I I buy a book that can't be viewed on device of my choosing (e.g. because of DRM) then I'm free to do whatever I want to the product to make it work on my hardware.
No EULA can be above the state law.