2N/A/* nl_langinfo() replacement: query locale dependent information. 2N/A Copyright (C) 2007-2010 Free Software Foundation, Inc. 2N/A This program is free software: you can redistribute it and/or modify 2N/A it under the terms of the GNU General Public License as published by 2N/A the Free Software Foundation; either version 3 of the License, or 2N/A (at your option) any later version. 2N/A This program is distributed in the hope that it will be useful, 2N/A but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A GNU General Public License for more details. 2N/A You should have received a copy of the GNU General Public License 2N/A/* Override nl_langinfo with support for added nl_item values. */ 2N/A /* If the locale name contains an encoding after the dot, return 2N/A /* Look for the possible @... trailer and remove it, if any. */ 2N/A return "%I:%M:%S %p";
2N/A /* The format is not standardized. In glibc it is a sequence of strings 2N/A of the form "direction:offset:start_date:end_date:era_name:era_format" 2N/A with an empty string at the end. */ 2N/A /* The %Ex conversion in strftime behaves like %x if the locale does not 2N/A have an alternative time format. */ 2N/A /* The %Ec conversion in strftime behaves like %c if the locale does not 2N/A have an alternative time format. */ 2N/A /* The %EX conversion in strftime behaves like %X if the locale does not 2N/A have an alternative time format. */ 2N/A /* The format is not standardized. In glibc it is a sequence of 10 2N/A strings, appended in memory. */ 2N/A return "\0\0\0\0\0\0\0\0\0\0";
2N/A/* Provide nl_langinfo from scratch. */ 2N/A/* Native Windows platforms. */ 2N/A/* An old Unix platform without locales, such as Linux libc5 or BeOS. */ 2N/A /* nl_langinfo items of the LC_CTYPE category */ 2N/A /* Woe32 has a function returning the locale's codepage as a number. */ 2N/A return "ISO-8859-1";
2N/A /* nl_langinfo items of the LC_NUMERIC category */ 2N/A /* nl_langinfo items of the LC_TIME category. 2N/A TODO: Really use the locale. */ 2N/A return "%a %b %e %H:%M:%S %Y";
2N/A return "%I:%M:%S %p";
2N/A return "\0\0\0\0\0\0\0\0\0\0";
2N/A /* nl_langinfo items of the LC_MONETARY category 2N/A TODO: Really use the locale. */ 2N/A /* nl_langinfo items of the LC_MESSAGES category 2N/A TODO: Really use the locale. */