lib: Do not take string context into account
Close #2883.
authored by Kirill Elagin and committed by Vladimír Čunát 11 years ago 751a0106 dbf92db3