Skip to content

gulp.watch not works if watched glob contains Japanese characters folder name #2153

Closed
@aruku7230

Description

@aruku7230
  • gulp: 4.00
  • node: 8.9.4
  • npm: 5.8.0
  • OS: macOS 10.12.6

gulpfile.json

const gulp = require('gulp');
const watchGlob = 'folder/**/*';

gulp.task('test', () => {
    gulp.watch(watchGlob, (done) => { done() })
            .on('change', (path) => {
                console.log(`File ${path} changed.`);
            });
});

run test task and change folder/foo file
result output is:

Starting 'test'...
File folder/foo changed.
Starting ''...
Finished '' after 1.45 ms

change watchGlob

const watchGlob = 'フォルダ/**/*';

run test task and change フォルダ/foo file.
result output is:

Starting 'test'...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugupstreamIssues that need to be fixed upstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions