mirror of
https://github.com/fltk/fltk.git
synced 2026-08-18 00:48:43 +08:00
Remove redundant condition from src/xutf8/ucs2fontmap.c (#1549)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Author: Jean-Marc Lienher ( http://oksid.ch )
|
||||
* Copyright 2000-2003 by O'ksi'D.
|
||||
* Copyright 2026 by Bill Spitzak and others.
|
||||
*
|
||||
* This library is free software. Distribution and use rights are outlined in
|
||||
* the file "COPYING" which should have been included with this file. If this
|
||||
@@ -13,6 +14,11 @@
|
||||
* https://www.fltk.org/bugs.php
|
||||
*/
|
||||
|
||||
/* Note: This file - or parts of it - must have been generated by a program
|
||||
* at some time in the past, see src/xutf8/utils/conv_gen.c .
|
||||
* However, it has been significantly edited since then.
|
||||
* Albrecht-S, Aug 9, 2026. See GitHub Issue #1549.
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -335,7 +341,7 @@ static int encoding_number(const char *enc) {
|
||||
} else if (!strcmp(enc, "ksc5601.1987-0")) {
|
||||
return 16;
|
||||
} else if (!strcmp(enc, "gb2312.1980-0") || !strcmp(enc, "gb2312.80-0") ||
|
||||
!strcmp(enc, "gb2312.80&gb8565.88") || !strcmp(enc, "gb2312.80-0"))
|
||||
!strcmp(enc, "gb2312.80&gb8565.88"))
|
||||
{
|
||||
return 17;
|
||||
} else if (!strcmp(enc, "jisx0201.1976-0")) {
|
||||
|
||||
Reference in New Issue
Block a user