In countries like China, Korea and Japan where Buddhism was profoundly influenced by Confucianism, there have been periods when homosexuality has been looked upon with disapproval and even been punishable under the law.
[...]
Theravada Buddhist countries like Sri Lanka and Burma had no legal statutes against homosexuality between consenting adults until the colonial era when they were introduced by the British. Thailand, which had no colonial experience, still has no such laws. This had led some Western homosexuals to believe that homosexuality is quite accepted in Buddhist countries of South and South-east Asia. This is certainly not true. In such countries, when homosexuals are thought of at all, it is more likely to be in a good-humored way or with a degree of pity.