summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * getlocale.c (main): Use setlocale and fetch string from WindowsCorinna Vinschen2010-01-252-5/+14
| | | | using GetLocaleInfoW. Explain why.
* * new-features.sgml: Rework layout to use itemizedlist. Fix typo.Corinna Vinschen2010-01-242-310/+535
| | | | Add two missing entries.
* * nlsfuncs.cc (__set_charset_from_locale): Fix comment.Corinna Vinschen2010-01-242-3/+5
|
* * nlsfuncs.cc (check_codepage): Move from syscalls.cc here.Corinna Vinschen2010-01-244-139/+121
| | | | | | | | | (internal_setlocale): Ditto. (initial_setlocale): Ditto. (setlocale): Ditto. * strfuncs.cc (__sjis_wctomb): Revert previous patch. (__sjis_mbtowc): Ditto. * syscalls.cc: Move setlocale-related functions to nlsfuncs.cc.
* * libc/locale/nl_langinfo.c (nl_langinfo): Return "CP932" when usingCorinna Vinschen2010-01-242-0/+19
| | | | SJIS on Cygwin. Explain why.
* * setup2.sgml (setup-locale-charsetlist): Add CP932. Change descriptionCorinna Vinschen2010-01-232-1/+7
| | | | for SJIS.
* * strfuncs.cc (__sjis_wctomb): Special handling for characters whichCorinna Vinschen2010-01-232-17/+36
| | | | | | | differ between SJIS and Windows codepage 932, if charset is "SJIS". (__sjis_mbtowc): Ditto. (_jis_wctomb): Remove. (__jis_mbtowc): Remove.
* * libc/locale/locale.c (loadlocale): Allow CP932 as alias for SJIS.Corinna Vinschen2010-01-232-9/+21
| | | | Add to documentation. Add a few comments to #endif's for Cygwin.
* * setup2.sgml (setup-locale-charsetlist): Add ASCII and TIS-620. AddCorinna Vinschen2010-01-232-3/+11
| | | | various aliases and case differences.
* * libc/locale/locale.c (loadlocale): Disable JIS entirely on Cygwin.Corinna Vinschen2010-01-232-1/+19
| | | | Allow TIS620 and TIS-620 as aliases for CP874 on Cygwin.
* gcc PR libstdc++/36101, gcc PR libstdc++/42813Joern Rennecke2010-01-233-2/+8
| | | | | * configure.ac (bootstrap_target_libs): Include target-libgomp. * configure: Regenerate.
* * nlsfuncs.cc (wcsxfrm): Call LCMapStringW with LCMAP_BYTEREV flag toCorinna Vinschen2010-01-232-1/+6
| | | | allow correct comparison using wcscmp.
* * posix.sgml (strfmon): Move to implemented SUSv4 API.Corinna Vinschen2010-01-222-1/+5
|
* * new-features.sgml (ov-new1.7.2): Add chapter for news in 1.7.2.Corinna Vinschen2010-01-223-46/+115
| | | | | | | | | | * setup2.sgml (setup-locale-ov): Describe how valid locales are determined by Windows locale support. Change description for modifiers in locale environment variables. (setup-locale-how): Describe new charset behaviour. Mention new getlocale tool to fetch valid locale information from Windows. (setup-locale-missing): Drop now implemented LC_foo options. Explain missing LC_MESSAGES in more detail.
* * Makefile.in (CYGWIN_BINS): Add getlocale.Corinna Vinschen2010-01-224-2/+185
| | | | | * getlocale.c: New file. * utils.sgml (getlocale): New section describing new getlocale tool.
* * Makefile.in (DLL_OFILES): Add nlsfunc.o and strfmon.o.Corinna Vinschen2010-01-2213-145/+1491
| | | | | | | | | | | | | | | | | | | | | | | | | * autoload.cc (LocaleNameToLCID): Define. * cygwin.din (strfmon): Export. * nlsfuncs.cc: New file. Define a lot of internal functions called from setlocale. (wcscoll): Implement locale-aware here, using CompareStringW function. (strcoll): Ditto. (wcsxfrm): Implement locale-aware here, usingLCMapStringW function. (strxfrm): Ditto. (__set_charset_from_locale): Replace __set_charset_from_codepage. Return Linux-compatible charset. * strfuncs.cc (__set_charset_from_codepage): Remove. * wchar.h (__set_charset_from_codepage): Drop definition. * wincap.h (wincaps::has_localenames): New element. * wincap.cc: Implement above element throughout. * libc/strfmon.c: New file. * libc/strptime.cc: Remove locale constant strings in favor of access to locale-specifc data. (strptime): Point _CurrentTimeLocale to locale-specific data. Throughout use correct locale-specific format fields for all locale-specific formats. * include/monetary.h: New file. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* gcc PR libstdc++/36101, gcc PR libstdc++/42813Joern Rennecke2010-01-226-6/+581
| | | | | | | | | * configure.ac (target_configdirs): Substitute. * Makefile.def: Bootstrap target module libgomp. Add dependency of all-target-libstdc++-v3 on configure-target-libgomp. * Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable. (BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS. * configure, Makefile.in: Regenerate.
* * libc/locale/lmonetary.c (__monetary_load_locale): Take additionalCorinna Vinschen2010-01-2211-172/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parameters for wide char to multibyte conversion. Call __set_lc_monetary_from_win on Cygwin. * libc/locale/lmonetary.h: Make C++-safe. (__monetary_load_locale): Change declaration. * libc/locale/lnumeric.c (__numeric_load_locale): Take additional parameters for wide char to multibyte conversion. Call __set_lc_numeric_from_win on Cygwin. * libc/locale/lnumeric.h: Make C++-safe. (__numeric_load_locale): Change declaration. * libc/locale/locale.c (lconv): De-constify for Cygwin. (__set_charset_from_locale): Rename from __set_charset_from_codepage. Take locale as parameter instead of a codepage. (loadlocale): Allow "EUC-JP" for "EUCJP" and "EUC-KR" for "EUCKR". Change documnetation accordingly. Enable LC_COLLATE, LC_MONETARY, LC_NUMERIC, and LC_TIME handling on Cygwin. (_localeconv_r): On Cygwin, copy values from monetary and numeric domain if change has been noted. * libc/locale/nl_langinfo.c (nl_langinfo): Accommodate change of am/pm layout in struct lc_time_T. * libc/locale/timelocal.c (_C_time_locale): Accommodate redefinition of am/pm members. (__time_load_locale): Take additional parameters for wide char to multibyte conversion. Call __set_lc_time_from_win on Cygwin. * libc/locale/timelocal.h: Make C++-safe. (struct lc_time_T): Convert am and pm to a am_pm array for easier consumption by strftime and strptime. (__time_load_locale): Change declaration. * libc/time/strftime.c: Change documentation to reflect changes to strftime. Remove locale constant strings in favor of access to locale-specifc data. (_ctloc): Define access method for locale-specifc data. (TOLOWER): Define for tolower conversion. (strftime): Throughout, convert locale-specific formats to use locale-specific data. Add GNU-specific "%P" format. * libc/time/strptime.c: Remove locale constant strings in favor of access to locale-specifc data. (_ctloc): Define access method for locale-specifc data. (strptime): Throughout, convert locale-specific formats to use locale-specific data.
* 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2010-01-212-0/+8
| | | | | | | | | | | | | | | | | | | * readelf.c (get_machine_flags): Handle EF_S390_HIGH_GPRS. 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * s390.h (EF_S390_HIGH_GPRS): Added macro definition. 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * config/tc-s390.c (s390_elf_final_processing): New function. * config/tc-s390.h (elf_tc_final_processing): New macro definition. (s390_elf_final_processing): Added prototype. 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function. (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
* * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translateCorinna Vinschen2010-01-202-6/+24
| | | | often-used charsets into Linux compatible codesets.
* 2010-01-19 Andy Koppe <andy.koppe@gmail.com>Jeff Johnston2010-01-192-4/+20
| | | | | * libc/stdio/vfscanf.c (__SVFSCANF_R): Fix handling of non-ASCII characters and allow invalid bytes in format string.
* * libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid charactersCorinna Vinschen2010-01-192-3/+13
| | | | correctly also in the s==NULL case.
* * common.h (PN_XNUM): Define.Alan Modra2010-01-192-1/+8
|
* * strfuncs.cc: Remove needless includes.Corinna Vinschen2010-01-182-4/+5
|
* * libc/locale/locale.c (loadlocale): Change comments to refer toCorinna Vinschen2010-01-172-2/+7
| | | | ISO 639-3 rather than 639-2.
* * setup2.sgml (setup-locale): Mention three character codes perCorinna Vinschen2010-01-172-15/+38
| | | | | | | ISO 639-3. * setup2.sgml (setup-locale): Adapt description to the C using ASCII change in 1.7.2.
* * libc/locale/locale.c (loadlocale): Allow three characterCorinna Vinschen2010-01-172-2/+12
| | | | language codes to accommodate ISO 639-2 codes.
* * syscalls.cc (internal_setlocale): Use UTF-8 internally if externalCorinna Vinschen2010-01-172-2/+15
| | | | charset is ASCII.
* * libc/locale/locale.c (lc_ctype_charset): Disable defaulting toCorinna Vinschen2010-01-174-2/+14
| | | | | | | | | "UTF-8" on Cygwin. (lc_message_charset): Ditto. (loadlocale): Disable setting charset of the "C" locale to "UTF-8" on Cygwin. * libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment. * libc/stdlib/wctomb_r.c (__wctomb): Ditto.
* * setup-net.sgml: Remove obsolete assertion.Christopher Faylor2010-01-162-2/+5
|
* * libc/fnmatch.c: Replace with multibyte capable version from FreeBSD.Corinna Vinschen2010-01-162-68/+149
|
* * cygpath.cc (get_mixed_name): Drop function. Replace with call toCorinna Vinschen2010-01-162-35/+15
| | | | | | convert_slashes throughout. (do_sysfolders): Free allocated buffer. (do_pathconv): Fix freeing last buffer.
* * fhandler_socket.cc (fhandler_socket::accept4): Reset async flagCorinna Vinschen2010-01-162-1/+6
| | | | on accepted socket.
* * faq-using.xml (faq.using.bloda): Clarify wxvault.dll.Corinna Vinschen2010-01-152-1/+6
|
* * fhandler_socket.cc (fhandler_socket::accept4): Set nonblockingCorinna Vinschen2010-01-153-3/+8
| | | | | flag exactly according to flags, as on Linux. * net.cc (cygwin_accept): Maintain BSD semantics here.
* * faq-setup.xml: Add missing setup options. Sort options.Christopher Faylor2010-01-152-12/+24
|
* * cygwin.din (accept4): Export.Corinna Vinschen2010-01-159-12/+102
| | | | | | | | | | | | | | | | | | | * fhandler.h (fhandler_socket::accept4): Rename from accept. Take additional flag parameter. * fhandler_socket.cc (fhandler_socket::accept4): Ditto. Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags. * net.cc (cygwin_socket): Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags in type. Check for invalid flag values. (socketpair): Ditto. (cygwin_accept): Accommodate renaming of fhandler_socket::accept function to accept4. (accept4): New function. * posix.sgml: Mention accept4 as GNU extensions. * include/cygwin/socket.h (SOCK_NONBLOCK): Define. (SOCK_CLOEXEC): Define. (_SOCK_FLAG_MASK): Define when building Cygwin. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * include/sys/socket.h (accept4): Declare.
* * posix.sgml: Mention dup3 and pipe2 as GNU extensions.Corinna Vinschen2010-01-152-0/+6
|
* * dcrt0.cc (dll_crt0_1): Reset locale to "C" at the last moment beforeCorinna Vinschen2010-01-143-3/+12
| | | | | | calling the application's main. * syscalls.cc (internal_setlocale): Don't reset locale to "C here. Change comment accordingly.
* * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.Corinna Vinschen2010-01-143-0/+16
| | | | | | (F_DUPFD_CLOEXEC): Define for Cygwin. * libc/include/sys/unistd.h (dup3): Define for Cygwin. (pipe2): Ditto.
* * cygwin.din (dup3): Export.Corinna Vinschen2010-01-1419-63/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (pipe2): Export. * dtable.cc (dtable::dup_worker): Take additional flags parameter. Handle O_CLOEXEC flag. (dtable::dup3): Rename from dup2. Take additional flags parameter. Check for valid flags. Drop check for newfd == oldfd. * dtable.h (dtable::dup_worker): Add flags parameter. (dtable::dup3): Rename from dup2. * fcntl.cc (fcntl64): Add F_DUPFD_CLOEXEC case. * fhandler.h (fhandler_mailslot::get_object_attr): Add flags parameter. * fhandler.cc (fhandler_base::open): Use security attribute with inheritance according to setting of O_CLOEXEC flag. * fhandler_console.cc (fhandler_console::open): Ditto. * fhandler_fifo.cc (sec_user_cloexec): New inline function to create security attribute with inheritance according to setting of O_CLOEXEC flag. (fhandler_fifo::open): Call sec_user_cloexec to fetch security attribute. (fhandler_fifo::wait): Ditto. * fhandler_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Take additional flags parameter. Use security attribute with inheritance according to setting of O_CLOEXEC flag. (fhandler_mailslot::open): Call get_object_attr with flags parameter. * fhandler_registry.cc (fhandler_registry::open): Call set_close_on_exec on real handles to accommodate O_CLOEXEC flag. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. * fhandler_tape.cc: Create mutex with inheritance according to setting of O_CLOEXEC flag. * pipe.cc: Replace usage of O_NOINHERIT with O_CLOEXEC. (fhandler_pipe::init): Simplify setting close_on_exec flag. (fhandler_pipe::open): Remove setting close_on_exec flag. (fhandler_pipe::create): Use security attribute with inheritance according to setting of O_CLOEXEC flag. (pipe2): New exported function. * posix_ipc.cc: Throughout, open backing files with O_CLOEXEC flag to follow POSIX semantics. * security.h (sec_none_cloexec): New define. * syscalls.cc (dup): Add missing extern "C" qualifier. Accommodate renaming of dtable::dup2 to dtable::dup3. (dup2): Ditto. Check newfd == oldfd here. (dup3): New function. Check newfd == oldfd here. (open): Set close_on_exec flag according to O_CLOEXEC flag before calling fhandler->open. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* Remove argument name.H.J. Lu2010-01-142-6/+14
| | | | | | | | | | 2010-01-14 H.J. Lu <hongjiu.lu@intel.com> * ia64.h (ia64_find_opcode): Remove argument name. (ia64_find_next_opcode): Likewise. (ia64_dis_opcode): Likewise. (ia64_free_opcode): Likewise. (ia64_find_dependency): Likewise.
* Drop accidentally applied ChangeLog entry.Corinna Vinschen2010-01-141-10/+0
|
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid inCorinna Vinschen2010-01-142-2/+22
| | | | the current charset through.
* * include/fcntl.h (O_TTY_INIT): Define as 0.Corinna Vinschen2010-01-132-1/+9
|
* Add new DW_AT_use_GNAT_descriptive_type CU attribute.Joel Brobecker2010-01-132-0/+6
| | | | * dwarf2.h (dwarf_attribute): Add DW_AT_use_GNAT_descriptive_type.
* * fhandler_tty.cc (fhandler_tty_master::init): Don't erase all defaultCorinna Vinschen2010-01-132-5/+6
| | | | termios settings of slave console.
* * syscalls.cc (rename): Don't exit prematurely with EROFS when tryingCorinna Vinschen2010-01-132-2/+8
| | | | | to rename an AF_LOCAL socket or when trying to replace an AF_LOCAL socket.
* * cygwinenv.sgml (cygwinenv-implemented-options): Try to makeCorinna Vinschen2010-01-122-4/+11
| | | | compatibility new symlinks vs. old Cygwin clearer.
* * globals.cc (ro_u_nwfs): New R/O unicode string.Corinna Vinschen2010-01-127-28/+71
| | | | | | | | | | | | | * mount.cc (fs_info::update): Check for NWFS filesystem. Set has_buggy_basic_info, if so. Add comment to explain why. (fillout_mntent): Add "nwfs" string to fs_names array. * mount.h (enum fs_info_type): Add nwfs. (class fs_info): Add has_buggy_basic_info status flag. Add accessors for has_buggy_basic_info and is_nwfs. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Accommodate filesystems with broken FileBasicInformation handling. * path.cc (symlink_info::check): Ditto. * path.h (path_conv::has_buggy_basic_info): Add method.