timelocal.c (4e86238071b192376f3f9a930728ab415e6913a4) timelocal.c (39d2c772eb664055f6c5184eb52fba0f78e6897f)
1/*-
2 * Copyright (c) 2001 Alexey Zelkin
3 * Copyright (c) 1997 FreeBSD Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 92 unchanged lines hidden (view full) ---

101}
102
103int
104__time_load_locale(const char *name) {
105
106 int ret;
107
108 ret = __part_load_locale(name, &_time_using_locale,
1/*-
2 * Copyright (c) 2001 Alexey Zelkin
3 * Copyright (c) 1997 FreeBSD Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 92 unchanged lines hidden (view full) ---

101}
102
103int
104__time_load_locale(const char *name) {
105
106 int ret;
107
108 ret = __part_load_locale(name, &_time_using_locale,
109 time_locale_buf, "LC_TIME", LCTIME_SIZE,
109 time_locale_buf, "LC_TIME", LCTIME_SIZE, LCTIME_SIZE,
110 (const char **)&_time_locale);
111
112 /* XXX: always overwrite for ctime format parsing compatibility */
113 if (ret == 0 && _time_using_locale)
114 _time_locale.c_fmt = _C_time_locale.c_fmt;
115 return (ret);
116}
110 (const char **)&_time_locale);
111
112 /* XXX: always overwrite for ctime format parsing compatibility */
113 if (ret == 0 && _time_using_locale)
114 _time_locale.c_fmt = _C_time_locale.c_fmt;
115 return (ret);
116}