Bug #12290 » issue12290_segthread_thread_name.diff
| thread.c | ||
|---|---|---|
|
if (!NIL_P(name)) {
|
||
|
rb_encoding *enc;
|
||
|
StringValueCStr(name);
|
||
|
#ifdef SET_ANOTHER_THREAD_NAME
|
||
|
if (!th->thread_id) {
|
||
|
rb_raise(rb_eThreadError, "Unable to change name here");
|
||
|
}
|
||
|
#endif
|
||
|
enc = rb_enc_get(name);
|
||
|
if (!rb_enc_asciicompat(enc)) {
|
||
|
rb_raise(rb_eArgError, "ASCII incompatible encoding (%s)",
|
||