On Do, 06 Jun 2019, Mike Williams wrote:

> Hi
> 
> On 05/06/2019 20:25, Bram Moolenaar wrote:
> > 
> > Patch 8.1.1468
> > Problem:    The generated desktop files may be invalid.
> > Solution:   Check validity with desktop-file-validate. (Christian Brabandt,
> >              Will Thompson, closes #4480)
> > Files:          src/po/Makefile
> > 
> 
> A clean build and install is now reporting the following warnings and 
> errors:
> 
> msgfmt --desktop -d . --template gvim.desktop.in -o tmp_gvim.desktop
> rm -f LINGUAS
> if command -v desktop-file-validate; then desktop-file-validate 
> tmp_gvim.desktop; fi
> /usr/bin/desktop-file-validate

> tmp_gvim.desktop: warning: file contains lines that are not UTF-8 
> encoded. There is no guarantee the validator will correctly work.

I have no clue where that comes from. 

> tmp_gvim.desktop: error: file contains multiple keys named 
> "GenericName[eo]" in group "Desktop Entry"
> tmp_gvim.desktop: error: file contains multiple keys named "Comment[eo]" 
> in group "Desktop Entry"

That is expected and fixed by 
https://github.com/vim/vim/commit/61da1bfa6c6b19dd670671a318ce9f9e2acc784c

> [Invalid UTF-8] tmp_gvim.desktop: error: value 
> "\xe0\xac\xaa\xe0\xac\xbe\xe0\xac\xa0\xe0\xad\x8d\xe0\xac\xaf 
> \xe0\xac\xab\xe0\xac\xbe\xe0\xac\x87\xe0\xac\xb2\xe0\xac\x97\xe0\xad\x81\xe0\xac\xa1\xe0\xac\xbc\xe0\xac\xbf\xe0\xac\x95\xe0\xad\x81
>  
> \xe0\xac\xb8\xe0\xac\xae\xe0\xad\x8d\xe0\xac\xaa\xe0\xac\xbe\xe0\xac\xa6\xe0\xac\xa8
>  
> \xe0\xac\x95\xe0\xac\xb0\xe0\xac\xa8\xe0\xad\x8d\xe0\xac\xa4\xe0\xad" 
> for locale string key "Comment[or]" in group "Desktop Entry" contains 
> invalid UTF-8 characters, locale string values should be encoded in UTF-8

I don't see that. I suspect either msgfmt cannot correctly handle the 
template (gvim.desktop.in) file or desktop-file-validate does 
incorrectly detect it as non UTF-8

BTW, is your locale set correctly?

For the records, in my debian dev box, I am using:
gettext:
  Installed: 0.19.8.1-9
  Candidate: 0.19.8.1-9
  Version table:
 *** 0.19.8.1-9 500
        500 http://ftp.de.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
0 140901 chrisbra@debian ~/code/vim-src/src/po (git)-[desktop-file-utils]- % 
apt-cache policy desktop-file-utils
desktop-file-utils:
  Installed: 0.23-4
  Candidate: 0.23-4
  Version table:
 *** 0.23-4 500
        500 http://ftp.de.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status


> This is on Ubuntu 16.04  Is this a problem with the VIM po source or 
> lack or installed tooling?

I am not sure yet. What does the raw generated utf-8 file tmp_gvim.desktop look 
like?

Mit freundlichen Grüßen
Christian
-- 
Für das Wohlbefinden einer Frau sind bewundernde Männerblicke
wichtiger als Kalorien und Medikamente.
                -- Françoise Sagan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20190606111641.GJ23877%40256bit.org.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui