1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/japanese/less/files/patch-filename.c
Hiroki Sato c0470cd468 - Add UTF-8 support[*].
- Add LICENSE.
- Update pkg-descr.
- Use PORTDOCS for additional documents.

Submitted by:	nork [*]
PR:		ports/175431 [*]
2013-01-19 16:57:52 +00:00

13 lines
421 B
C

--- filename.c.orig 2010-05-10 23:08:16.800855000 +0900
+++ filename.c 2013-01-19 08:38:15.691025968 +0900
@@ -817,6 +817,9 @@
else if (strcmp(".xz", &filename[length - 3]) == 0 ||
strcmp(".XZ", &filename[length - 3]) == 0)
return ("| xz -cd %s");
+ else if (strcmp(".lzma", &filename[length - 5]) == 0 ||
+ strcmp(".LZMA", &filename[length - 5]) == 0)
+ return ("| lzma -cd %s");
else
return (NULL);
}