I am seeing problems with the MS Windows client where the first clipboard update doesn't take. Copy the same text again and it does paste properly.
The -d clipboard output shows the exact same data both times!set_clipboard_text('somestring').