FreeBSD Bugzilla – Attachment 189718 Details for
Bug 225164
x11-fonts/fontconfig: Update to 2.12.6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
The testcase for FcLangNormalize function
testcase.c (text/plain), 1013 bytes, created by
lightside
on 2018-01-14 19:51:34 UTC
(
hide
)
Description:
The testcase for FcLangNormalize function
Filename:
MIME Type:
Creator:
lightside
Created:
2018-01-14 19:51:34 UTC
Size:
1013 bytes
patch
obsolete
>/* > % cc `pkg-config --cflags --libs fontconfig` -o testcase testcase.c > % ./testcase sk_SK.UTF-8 sr_Cyrl_RS.UTF-8 > For patched fontconfig: > Result of FcLangNormalize for 'sk_SK.UTF-8' is 'sk' > Result of FcLangNormalize for 'sr_Cyrl_RS.UTF-8' is 'sr' > > For unpatched fontconfig: > Result of FcLangNormalize for 'sk_SK.UTF-8' is 'sk' > Fontconfig warning: ignoring sr_Cyrl_RS.UTF-8: not a valid region tag > No result of FcLangNormalize for 'sr_Cyrl_RS.UTF-8' >*/ > >#include <stdio.h> >#include <fontconfig/fontconfig.h> > >int main(int argc, const char *argv[]) >{ > if (argc < 2) { > fprintf(stderr, "Additional argument(s) required\n" > "Example of usage: %s en_US.UTF_8\n", argv[0]); > > return 1; > } > > for (int i = 1; i < argc; ++i) { > FcChar8 *result = NULL; > result = FcLangNormalize((FcChar8 *) argv[i]); > if (result) { > printf("Result of FcLangNormalize for '%s' is '%s'\n", argv[i], result); > FcStrFree(result); > } else { > printf("No result of FcLangNormalize for '%s'\n", argv[i]); > } > } > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 225164
:
189716
|
189717
| 189718 |
191354
|
191368
|
191372
|
193081
|
193091
|
193093