OSDN Git Service

* dtable.cc (dtable::dup_worker): Reset path_conv handle in duplicated
[pf3gnuchains/pf3gnuchains4x.git] / winsup / cygwin / dtable.cc
index 7f52c97..332bc71 100644 (file)
@@ -582,6 +582,7 @@ dtable::dup_worker (fhandler_base *oldfh, int flags)
     {
       *newfh = *oldfh;
       newfh->set_io_handle (NULL);
+      newfh->pc.reset_conv_handle ();
       if (oldfh->dup (newfh))
        {
          delete newfh;