-.\" $OpenBSD: calendar.1,v 1.38 2015/09/25 16:36:00 schwarze Exp $
+.\" $OpenBSD: calendar.1,v 1.39 2015/10/23 11:01:30 zhuk Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)calendar.1 8.1 (Berkeley) 6/29/93
.\"
-.Dd $Mdocdate: September 25 2015 $
+.Dd $Mdocdate: October 23 2015 $
.Dt CALENDAR 1
.Os
.Sh NAME
.Ar num
days (backward, past).
.It Fl b
-Enforce special date calculation mode for KOI8 calendars.
+Enforce special date calculation mode for Cyrillic calendars.
.It Fl f Ar calendarfile
Use
.Ar calendarfile
.Dq LANG=<local_name>
and
.Dq BODUN=<bodun_prefix>
-where <local_name> can be ru_RU.KOI8-R, uk_UA.KOI8-U or by_BY.KOI8-B.
+where <local_name> can be ru_RU.UTF-8, uk_UA.UTF-8 or by_BY.UTF-8.
.Pp
Other lines should begin with a month and day.
They may be entered in almost any format, either numeric or as character
-/* $OpenBSD: io.c,v 1.39 2015/04/18 18:28:37 deraadt Exp $ */
+/* $OpenBSD: io.c,v 1.40 2015/10/23 11:01:30 zhuk Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
if (strncmp(buf, "LANG=", 5) == 0) {
(void) setlocale(LC_ALL, buf + 5);
setnnames();
- if (!strcmp(buf + 5, "ru_RU.KOI8-R") ||
+ /* XXX remove KOI8 lines after 5.9 is out */
+ if (!strcmp(buf + 5, "ru_RU.UTF-8") ||
+ !strcmp(buf + 5, "uk_UA.UTF-8") ||
+ !strcmp(buf + 5, "by_BY.UTF-8")) ||
+ !strcmp(buf + 5, "ru_RU.KOI8-R") ||
!strcmp(buf + 5, "uk_UA.KOI8-U") ||
!strcmp(buf + 5, "by_BY.KOI8-B")) {
bodun_maybe++;