GNU bug report logs -
#23269
new snapshot available: grep-2.24.13-bed6
Previous Next
Reported by: Jim Meyering <jim <at> meyering.net>
Date: Mon, 11 Apr 2016 15:54:02 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #47 received at 23269 <at> debbugs.gnu.org (full text, mbox):
sur-behoffski <sur_behoffski <at> grouse.com.au> wrote:
> So, I'm not sure if a thread-safe (i.e. locale-safe) version of mbrtowc
> exists; if not, this needs to be addressed before a split-locale,
> multi-threaded version is feasible. (LC_CTYPE race conditions?)
By definition, mbrtowc is thread safe. The question relates better
to setlocale(), or rather to the underlying internal locale data. I don't
think the current POSIX model lends itself to multiple locales within
the same process.
I have to wonder if a multi-threaded grep makes sense in any case; it
would be a very suprising change in behavior if output from multiple
files comes out interleaved, instead of in the order the files were
specified on the command line.
My two cents, of course.
Thanks,
Arnold
This bug report was last modified 8 years and 309 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.