g_strerror() is more portable, and guarantees that the returned string is UTF-8 encoded.
Attach a file by drag & drop or click to upload