summaryrefslogtreecommitdiffstats
path: root/g10/keygen.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/keygen.c')
-rw-r--r--g10/keygen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index 6b04971ca..a17d47927 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -689,6 +689,11 @@ ask_user_id( int mode )
break;
m_free(uid); uid = NULL;
}
+ if( uid ) {
+ char *p = native_to_utf8( uid );
+ m_free( uid );
+ uid = p;
+ }
return uid;
}