|   | 16 |  | 
          
          
            |   | 17 | Self notes: | 
          
          
            |   | 18 |  | 
          
          
            |   | 19 | * write_pot_file is called by process_locale_dir() line 591 | 
          
          
            |   | 20 | * after write_pot_file, then (for build_file in build_files).cleanup, it noop with this bug | 
          
          
            |   | 21 | * process_locale_dir is called by process_files (line 499) | 
          
          
            |   | 22 | * process_files is called by build_potfiles (line 402) | 
          
          
            |   | 23 | * build_potfiles calls Running ['msguniq', '--to-code=utf-8', 'D:\\work\\messagesbug\\messagesbug\\edu\\locale\\django.pot'] | 
          
          
            |   | 24 |  | 
          
          
            |   | 25 | When I try to run it manually: (extension *must* be .pot, otherwise you'll get error) | 
          
          
            |   | 26 |  | 
          
          
            |   | 27 | {{{ | 
          
          
            |   | 28 | (venv) D:\work\messagesbug\messagesbug>msguniq --to-code=utf-8 edu\locale\orig.django.pot | 
          
          
            |   | 29 | warning: Could not open file /usr/share/gettext/styles/po-default.css | 
          
          
            |   | 30 | ... | 
          
          
            |   | 31 | #: .\edu\templates\edu\home.html:66 .\edu\templates\edu\home.html:68 | 
          
          
            |   | 32 | #: .\edu\templates\edu\music_country.html:15 | 
          
          
            |   | 33 | #: .\edu\templates\edu\music_country.html:40 | 
          
          
            |   | 34 | #: .\edu\templates\edu\music_country.html:44 | 
          
          
            |   | 35 | #, python-format | 
          
          
            |   | 36 | msgid "Best Music Schools & Teachers in %(loc_name)s" | 
          
          
            |   | 37 | msgstr "" | 
          
          
            |   | 38 |  | 
          
          
            |   | 39 |  .\edu\templates\edu\music_country.html:34 | 
          
          
            |   | 40 | #, python-format | 
          
          
            |   | 41 | msgid "" | 
          
          
            |   | 42 | "With the <strong>huge benefits to learning to play a musical instrument</" | 
          
          
            |   | 43 | }}} | 
          
          
            |   | 44 |  | 
          
          
            |   | 45 | So indeed it is a bug with {{msguniq}} on Windows. Good progress. So next step is to make a good trigger :) |