source: trunk/dports/textproc/nkf/files/nkf.git-4e632c30b502e56032a1781e4edf44ec462fe6ad.patch @ 97688

Last change on this file since 97688 was 97688, checked in by takanori@…, 7 years ago

nkf: version 2.1.3 (2012-08-29)

File size: 889 bytes
  • nkf.c

    From: NARUSE, Yui <naruse@users.sourceforge.jp>
    Date: Sat, 17 Mar 2012 11:40:54 +0000 (+0900)
    Subject: Show endian on --guess.
    X-Git-Url: http://git.sourceforge.jp/view?p=nkf%2Fnkf.git;a=commitdiff_plain;h=4e632c30b502e56032a1781e4edf44ec462fe6ad
    
    Show endian on --guess.
    
    http://sourceforge.jp/ticket/browse.php?group_id=248&tid=26325
    ---
    
    diff --git a/nkf.c b/nkf.c
    index 0382f30..b9df10e 100644
    a b print_guessed_code(char *filename) 
    41904190        if (guess_f == 1) {
    41914191            printf("%s\n", input_codename);
    41924192        } else {
    4193             printf("%s%s\n",
     4193            printf("%s%s%s\n",
    41944194                   input_codename,
     4195                   iconv != w_iconv16 && iconv != w_iconv32 ? "" :
     4196                   input_endian == ENDIAN_LITTLE ? " LE" :
     4197                   input_endian == ENDIAN_BIG ? " BE" :
     4198                   "[BUG]",
    41954199                   input_eol == CR   ? " (CR)" :
    41964200                   input_eol == LF   ? " (LF)" :
    41974201                   input_eol == CRLF ? " (CRLF)" :
Note: See TracBrowser for help on using the repository browser.